- added new commandline options to tell the game where to look for data, ini's and where to write logs

This commit is contained in:
Mark Vejvoda
2010-12-09 20:41:11 +00:00
parent f4ed98ce27
commit 045c2f95e8
19 changed files with 477 additions and 133 deletions

View File

@@ -73,8 +73,8 @@ Profiler::~Profiler(){
rootSection->stop();
string profileLog = "profiler.log";
if(getGameReadWritePath() != "") {
profileLog = getGameReadWritePath() + profileLog;
if(getGameReadWritePath(GameConstants::path_logs_CacheLookupKey) != "") {
profileLog = getGameReadWritePath(GameConstants::path_logs_CacheLookupKey) + profileLog;
}
FILE *f= fopen(profileLog.c_str(), "w");
if(f==NULL)