Changeset 2685 for code/branches/buildsystem3/src/orxonox/Main.cc
- Timestamp:
- Feb 20, 2009, 5:32:04 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/buildsystem3/src/orxonox/Main.cc
r2664 r2685 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 … … 37 37 #include <exception> 38 38 #include <cassert> 39 #include <fstream> 39 40 40 41 #include "OrxonoxConfig.h" … … 85 86 86 87 87 //#ifdef __cplusplus88 //extern "C" {89 //#endif90 91 88 SetCommandLineArgument(settingsFile, "orxonox.ini"); 89 SetCommandLineArgument(configFileDirectory, ""); 92 90 93 91 int main(int argc, char** argv) … … 95 93 using namespace orxonox; 96 94 97 // create a signal handler (only works for linux) 95 // First, determine whether we have an installed or a binary dir run 96 // The latter occurs when simply running from the build directory 97 std::ifstream probe; 98 probe.open("orxonox_dev_build.keep_me"); 99 if (probe) 100 { 101 Core::setDevBuild(); 102 probe.close(); 103 } 104 105 // create a signal handler (only active for linux) 98 106 SignalHandler signalHandler; 99 signalHandler.doCatch(argv[0], "orxonox.log");107 signalHandler.doCatch(argv[0], Core::getLogPath() + "orxonox_crash.log"); 100 108 101 109 // Parse command line arguments … … 157 165 return 0; 158 166 } 159 160 //#ifdef __cplusplus161 //}162 //#endif
Note: See TracChangeset
for help on using the changeset viewer.