Changeset 1762 for code/trunk
- Timestamp:
- Sep 10, 2008, 12:01:46 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/core/Core.cc
r1756 r1762 50 50 RegisterRootObject(Core); 51 51 this->setConfigValues(); 52 isCreatingCoreSettings() = false; 52 53 } 53 54 … … 66 67 { 67 68 static bool bCreatingCoreSettings = true; 68 static bool bFirstTime = true;69 if (bFirstTime)70 {71 bFirstTime = false;72 Core::getInstance();73 }74 69 return bCreatingCoreSettings; 75 70 } … … 81 76 Core& Core::getInstance() 82 77 { 83 static Core instance;84 85 78 // If bCreatingSoftDebugLevelObject is true, we're just about to create an instance of the DebugLevel class 86 79 //if (Core::isCreatingCoreSettings()) 87 80 //{ 88 81 // isCreatingCoreSettings() = false; 89 // instance.setConfigValues();82 // //instance.setConfigValues(); 90 83 //} 84 85 static bool firstTime = true; 86 if (firstTime) 87 isCreatingCoreSettings() = true; 88 89 static Core instance; 91 90 return instance; 92 91 }
Note: See TracChangeset
for help on using the changeset viewer.