Linked to debugMode option, gutted RTP config

This commit is contained in:
Mathew 2015-11-26 18:11:08 -05:00 committed by Mathew Velasquez
parent 189556652c
commit 917d320342
5 changed files with 3 additions and 10 deletions

View File

@ -404,6 +404,9 @@ static void runRMXPScripts(BacktraceData &btData)
return;
}
/* Set the debug flag */
rb_gv_set("$DEBUG", conf.debugMode ? Qtrue : Qfalse);
rb_gv_set("$RGSS_SCRIPTS", scriptArray);
long scriptCount = RARRAY_LEN(scriptArray);

View File

@ -5,9 +5,6 @@
#==============================================================================
begin
$DEBUG = true
$DEMO = false
Graphics.frame_rate = 60
Font.default_size = 20

View File

@ -170,7 +170,6 @@ void Config::read(int argc, char *argv[])
podesc.add_options()
PO_DESC_ALL
("preloadScript", po::value<StringVec>()->composing())
("RTP", po::value<StringVec>()->composing())
("fontSub", 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( rtps = vm["RTP"].as<StringVec>(); );
GUARD_ALL( fontSubs = vm["fontSub"].as<StringVec>(); );
GUARD_ALL( rubyLoadpaths = vm["rubyLoadpath"].as<StringVec>(); );

View File

@ -69,7 +69,6 @@ struct Config
} SE;
std::vector<std::string> preloadScripts;
std::vector<std::string> rtps;
std::vector<std::string> fontSubs;

View File

@ -132,9 +132,6 @@ struct SharedStatePrivate
fileSystem.addPath(".");
for (size_t i = 0; i < config.rtps.size(); ++i)
fileSystem.addPath(config.rtps[i].c_str());
if (config.pathCache)
fileSystem.createPathCache();