Linked to debugMode option, gutted RTP config
This commit is contained in:
parent
189556652c
commit
917d320342
|
@ -404,6 +404,9 @@ static void runRMXPScripts(BacktraceData &btData)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Set the debug flag */
|
||||||
|
rb_gv_set("$DEBUG", conf.debugMode ? Qtrue : Qfalse);
|
||||||
|
|
||||||
rb_gv_set("$RGSS_SCRIPTS", scriptArray);
|
rb_gv_set("$RGSS_SCRIPTS", scriptArray);
|
||||||
|
|
||||||
long scriptCount = RARRAY_LEN(scriptArray);
|
long scriptCount = RARRAY_LEN(scriptArray);
|
||||||
|
|
|
@ -5,9 +5,6 @@
|
||||||
#==============================================================================
|
#==============================================================================
|
||||||
|
|
||||||
begin
|
begin
|
||||||
$DEBUG = true
|
|
||||||
$DEMO = false
|
|
||||||
|
|
||||||
Graphics.frame_rate = 60
|
Graphics.frame_rate = 60
|
||||||
Font.default_size = 20
|
Font.default_size = 20
|
||||||
|
|
||||||
|
|
|
@ -170,7 +170,6 @@ void Config::read(int argc, char *argv[])
|
||||||
podesc.add_options()
|
podesc.add_options()
|
||||||
PO_DESC_ALL
|
PO_DESC_ALL
|
||||||
("preloadScript", po::value<StringVec>()->composing())
|
("preloadScript", po::value<StringVec>()->composing())
|
||||||
("RTP", po::value<StringVec>()->composing())
|
|
||||||
("fontSub", po::value<StringVec>()->composing())
|
("fontSub", po::value<StringVec>()->composing())
|
||||||
("rubyLoadpath", po::value<StringVec>()->composing())
|
("rubyLoadpath", po::value<StringVec>()->composing())
|
||||||
;
|
;
|
||||||
|
@ -212,8 +211,6 @@ void Config::read(int argc, char *argv[])
|
||||||
|
|
||||||
GUARD_ALL( preloadScripts = vm["preloadScript"].as<StringVec>(); );
|
GUARD_ALL( preloadScripts = vm["preloadScript"].as<StringVec>(); );
|
||||||
|
|
||||||
GUARD_ALL( rtps = vm["RTP"].as<StringVec>(); );
|
|
||||||
|
|
||||||
GUARD_ALL( fontSubs = vm["fontSub"].as<StringVec>(); );
|
GUARD_ALL( fontSubs = vm["fontSub"].as<StringVec>(); );
|
||||||
|
|
||||||
GUARD_ALL( rubyLoadpaths = vm["rubyLoadpath"].as<StringVec>(); );
|
GUARD_ALL( rubyLoadpaths = vm["rubyLoadpath"].as<StringVec>(); );
|
||||||
|
|
|
@ -69,7 +69,6 @@ struct Config
|
||||||
} SE;
|
} SE;
|
||||||
|
|
||||||
std::vector<std::string> preloadScripts;
|
std::vector<std::string> preloadScripts;
|
||||||
std::vector<std::string> rtps;
|
|
||||||
|
|
||||||
std::vector<std::string> fontSubs;
|
std::vector<std::string> fontSubs;
|
||||||
|
|
||||||
|
|
|
@ -132,9 +132,6 @@ struct SharedStatePrivate
|
||||||
|
|
||||||
fileSystem.addPath(".");
|
fileSystem.addPath(".");
|
||||||
|
|
||||||
for (size_t i = 0; i < config.rtps.size(); ++i)
|
|
||||||
fileSystem.addPath(config.rtps[i].c_str());
|
|
||||||
|
|
||||||
if (config.pathCache)
|
if (config.pathCache)
|
||||||
fileSystem.createPathCache();
|
fileSystem.createPathCache();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue