MRI-Binding: Allow manually specifying load paths in config

This commit is contained in:
Jonas Kulla 2014-07-24 23:11:12 +02:00
parent 393a283d99
commit ec16210f8a
4 changed files with 48 additions and 1 deletions

View file

@ -84,6 +84,7 @@ void Config::read(int argc, char *argv[])
PO_DESC_ALL
("RTP", po::value<StringVec>()->composing())
("fontSub", po::value<StringVec>()->composing())
("rubyLoadpath", po::value<StringVec>()->composing())
;
po::variables_map vm;
@ -118,6 +119,8 @@ void Config::read(int argc, char *argv[])
GUARD_ALL( fontSubs = vm["fontSub"].as<StringVec>(); );
GUARD_ALL( rubyLoadpaths = vm["rubyLoadpath"].as<StringVec>(); )
#undef PO_DESC
#undef PO_DESC_ALL
}

View file

@ -57,6 +57,8 @@ struct Config
std::vector<std::string> fontSubs;
std::vector<std::string> rubyLoadpaths;
/* Game INI contents */
struct {
std::string scripts;