Changeset 2710 for code/trunk/src/orxonox/Main.cc
- Timestamp:
- Feb 28, 2009, 7:46:37 PM (16 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:ignore deleted
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/Main.cc
r2662 r2710 30 30 /** 31 31 @file 32 @brief Entry point of the program. Platform specific code.32 @brief Entry point of the program. 33 33 */ 34 34 … … 38 38 #include <cassert> 39 39 40 #include " util/OrxonoxPlatform.h"40 #include "OrxonoxConfig.h" 41 41 #include "util/Debug.h" 42 42 #include "util/SignalHandler.h" … … 57 57 #include "gamestates/GSIOConsole.h" 58 58 59 #if ORXONOX_PLATFORM ==ORXONOX_PLATFORM_APPLE59 #ifdef ORXONOX_PLATFORM_APPLE 60 60 #include <CoreFoundation/CoreFoundation.h> 61 61 … … 85 85 86 86 87 //#ifdef __cplusplus88 //extern "C" {89 //#endif90 91 87 SetCommandLineArgument(settingsFile, "orxonox.ini"); 88 SetCommandLineArgument(configFileDirectory, ""); 92 89 93 90 int main(int argc, char** argv) … … 95 92 using namespace orxonox; 96 93 97 // create a signal handler (only worksfor linux)94 // create a signal handler (only active for linux) 98 95 SignalHandler signalHandler; 99 signalHandler.doCatch(argv[0], "orxonox.log");96 signalHandler.doCatch(argv[0], Core::getLogPathString() + "orxonox_crash.log"); 100 97 101 98 // Parse command line arguments … … 109 106 COUT(0) << "Usage:" << std::endl << "orxonox " << CommandLine::getUsageInformation() << std::endl; 110 107 } 108 109 // Do this after parsing the command line to allow customisation 110 Core::postMainInitialisation(); 111 111 112 112 // Create the ConfigFileManager before creating the GameStates in order to have … … 157 157 return 0; 158 158 } 159 160 //#ifdef __cplusplus161 //}162 //#endif
Note: See TracChangeset
for help on using the changeset viewer.