From: <pa...@us...> - 2008-10-27 03:44:40
|
Revision: 934 http://opde.svn.sourceforge.net/opde/?rev=934&view=rev Author: patryn Date: 2008-10-27 03:44:32 +0000 (Mon, 27 Oct 2008) Log Message: ----------- Added another informative message to the log file, before sending the installer to Bikerdude of TTLG. Modified Paths: -------------- trunk/src/main/GameStateManager.cpp Modified: trunk/src/main/GameStateManager.cpp =================================================================== --- trunk/src/main/GameStateManager.cpp 2008-10-26 17:23:16 UTC (rev 933) +++ trunk/src/main/GameStateManager.cpp 2008-10-27 03:44:32 UTC (rev 934) @@ -169,7 +169,7 @@ mConfigService->setParam("mission", "earth.mis"); else mConfigService->setParam("mission", "miss1.mis"); - } + } // TODO: Remove this temporary nonsense. In fact. Remove the whole class this method is in! GamePlayState* ps = new GamePlayState(); @@ -228,18 +228,27 @@ void GameStateManager::setupResources(void) { // First, register the script loaders... // Load resource paths from config file - String configName = "resources.cfg"; + String configName = "resources.cfg", GameType = "Default"; //Load the resources according to the game type, if game type not specified, load the default if((mGameType == "T1") || (mGameType == "t1")) + { configName = "thief1.cfg"; + GameType = "Thief TDP/G"; + } else if((mGameType == "T2") || (mGameType == "t2")) + { configName = "thief2.cfg"; + GameType = "Thief II TMA"; + } else if((mGameType == "SS2") || (mGameType == "ss2")) + { configName = "shock2.cfg"; + GameType = "System Shock 2"; + } + LOG_INFO("Game type: %s", GameType.c_str()); - mRoot->loadResourceConfig(configName); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |