void KotOREngine::run(const Common::UString &target) { _baseDirectory = target; init(); if (EventMan.quitRequested()) return; status("Successfully initialized the engine"); CursorMan.hideCursor(); CursorMan.set(); playIntroVideos(); if (EventMan.quitRequested()) return; CursorMan.showCursor(); if (ConfigMan.getBool("showfps", false)) { _fps = new Graphics::Aurora::FPS(FontMan.get(Graphics::Aurora::kSystemFontMono, 13)); _fps->show(); } mainMenuLoop(); deinit(); }
void SonicEngine::run(const Common::UString &target) { _romFile = target; init(); ResMan.declareResource("nintendosplash.tga"); status("Successfully initialized the engine"); playIntroVideos(); bool showFPS = ConfigMan.getBool("showfps", false); Graphics::Aurora::FPS *fps = 0; if (showFPS) { fps = new Graphics::Aurora::FPS(FontMan.get(Graphics::Aurora::kSystemFontMono, 13)); fps->show(); } Graphics::Aurora::Cube *cube = 0; try { cube = new Graphics::Aurora::Cube("nintendosplash"); } catch (Common::Exception &e) { Common::printException(e); } while (!EventMan.quitRequested()) { EventMan.delay(10); } delete cube; delete fps; }
void JadeEngine::run() { init(); if (EventMan.quitRequested()) return; CursorMan.hideCursor(); CursorMan.set(); playIntroVideos(); if (EventMan.quitRequested()) return; CursorMan.showCursor(); main(); deinit(); }
void NWN2Engine::run() { init(); if (EventMan.quitRequested()) return; CursorMan.hideCursor(); CursorMan.set(); playIntroVideos(); if (EventMan.quitRequested()) return; CursorMan.showCursor(); _game = new Game(*this, *_console); _game->run(); deinit(); }
void KotOR2Engine::run() { init(); if (EventMan.quitRequested()) return; CursorMan.hideCursor(); CursorMan.set(); playIntroVideos(); if (EventMan.quitRequested()) return; CursorMan.showCursor(); _game.reset(new Game(*this, *_console, _platform)); _game->run(); deinit(); }
void NWNEngine::run() { init(); if (EventMan.quitRequested()) return; CursorMan.hideCursor(); CursorMan.set(); playIntroVideos(); if (EventMan.quitRequested()) return; CursorMan.showCursor(); if (ConfigMan.getBool("showfps", false)) { _fps = new Graphics::Aurora::FPS(FontMan.get(Graphics::Aurora::kSystemFontMono, 13)); _fps->show(); } mainMenuLoop(); deinit(); }