- Timestamp:
- Jun 17, 2005, 11:07:59 AM (19 years ago)
- Location:
- orxonox/trunk/src/subprojects
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/subprojects/framework.cc
r4647 r4650 25 25 #include "resource_manager.h" 26 26 #include "camera.h" 27 #include "ini_parser.h" 27 28 28 29 29 30 int verbose; 31 32 void Framework::init(void) 33 { 34 // create parser 35 IniParser parser (DEFAULT_CONFIG_FILE); 36 if( parser.getSection (CONFIG_SECTION_DATA) == -1) 37 { 38 PRINTF(1)("Could not find Section %s in %s\n", CONFIG_SECTION_DATA, DEFAULT_CONFIG_FILE); 39 } 40 char namebuf[256]; 41 char valuebuf[256]; 42 memset (namebuf, 0, 256); 43 memset (valuebuf, 0, 256); 44 45 while( parser.nextVar (namebuf, valuebuf) != -1) 46 { 47 if (!strcmp(namebuf, CONFIG_NAME_DATADIR)) 48 { 49 // printf("Not yet implemented\n"); 50 if (!ResourceManager::getInstance()->setDataDir(valuebuf)) 51 { 52 PRINTF(1)("Data Could not be located\n"); 53 } 54 } 55 56 memset (namebuf, 0, 256); 57 memset (valuebuf, 0, 256); 58 } 59 60 if (!ResourceManager::getInstance()->checkDataDir(DEFAULT_DATA_DIR_CHECKFILE)) 61 { 62 PRINTF(1)("The DataDirectory %s could not be verified\nPlease Change in File %s Section %s Entry %s to a suitable value\n", 63 ResourceManager::getInstance()->getDataDir(), 64 DEFAULT_CONFIG_FILE, 65 CONFIG_SECTION_DATA, 66 CONFIG_NAME_DATADIR); 67 exit(-1); 68 } 69 } 70 30 71 31 72 void* Framework::mainLoop(void* tmp) … … 238 279 Framework::Framework() 239 280 { 281 this->init(); 282 240 283 this->isFinished = false; 241 284 … … 256 299 for (int i = 0; i < 4; i++) 257 300 backgroundColor[i] = 0; 258 259 ResourceManager::getInstance()->setDataDir(DATA_DIRECTORY);260 301 261 302 camera = new Camera(); -
orxonox/trunk/src/subprojects/framework.h
r4554 r4650 11 11 #endif 12 12 13 #define DATA_DIRECTORY "~/orxonox/repos/trunk/data/" 14 #define MOUSE_BUTTON_COUNT 8 13 #define MOUSE_BUTTON_COUNT 3 15 14 16 15 class Camera; … … 52 51 53 52 54 53 void init(void); 55 54 static void* mainLoop(void* tmp); 56 55 bool draw(float dt); -
orxonox/trunk/src/subprojects/particles/Makefile.am
r4649 r4650 8 8 $(MAINSRCDIR)/lib/event/libORXevent.a \ 9 9 $(MAINSRCDIR)/lib/particles/libORXparticles.a \ 10 $(MAINSRCDIR)/lib/sound/libORXsound.a \ 10 11 $(MAINSRCDIR)/lib/graphics/importer/libORXimporter.a \ 11 12 $(MAINSRCDIR)/lib/physics/libORXphysics.a \ … … 13 14 $(GTK2_LIBS) $(GTHREAD_LIBS) $(CURL_LIBS) 14 15 15 particles_CPPFLAGS = -DGUI_MODULE -DNO_AUDIO\16 particles_CPPFLAGS = -DGUI_MODULE \ 16 17 $(GTK2_CFLAGS) $(GTHREAD_CFLAGS) $(CURL_CFLAGS) $(MSBITFIELDS) 17 18 -
orxonox/trunk/src/subprojects/particles/Makefile.in
r4649 r4650 68 68 $(MAINSRCDIR)/lib/event/libORXevent.a \ 69 69 $(MAINSRCDIR)/lib/particles/libORXparticles.a \ 70 $(MAINSRCDIR)/lib/sound/libORXsound.a \ 70 71 $(MAINSRCDIR)/lib/graphics/importer/libORXimporter.a \ 71 72 $(MAINSRCDIR)/lib/physics/libORXphysics.a \ … … 216 217 $(MAINSRCDIR)/lib/event/libORXevent.a \ 217 218 $(MAINSRCDIR)/lib/particles/libORXparticles.a \ 219 $(MAINSRCDIR)/lib/sound/libORXsound.a \ 218 220 $(MAINSRCDIR)/lib/graphics/importer/libORXimporter.a \ 219 221 $(MAINSRCDIR)/lib/physics/libORXphysics.a \ … … 221 223 $(GTK2_LIBS) $(GTHREAD_LIBS) $(CURL_LIBS) 222 224 223 particles_CPPFLAGS = -DGUI_MODULE -DNO_AUDIO\225 particles_CPPFLAGS = -DGUI_MODULE \ 224 226 $(GTK2_CFLAGS) $(GTHREAD_CFLAGS) $(CURL_CFLAGS) $(MSBITFIELDS) 225 227
Note: See TracChangeset
for help on using the changeset viewer.