void ReRaceAbort() { ReShutdownUpdaters(); RePhysicsEngine().shutdown(); RaceEngine::self().unloadPhysicsEngine(); ReUI().onRaceFinishing(); ReRaceCleanDrivers(); if (NetGetNetwork()) NetGetNetwork()->Disconnect(); FREEZ(ReInfo->_reCarInfo); if (ReInfo->params != ReInfo->mainParams) { GfParmReleaseHandle(ReInfo->params); ReInfo->params = ReInfo->mainParams; } // Return to race configuration step ReStateApply((void*)RE_STATE_CONFIG); }
void ReRaceCleanup(void) { ReInfo->_reGameScreen = ReHookInit(); ReInfo->_reSimItf.shutdown(); if (ReInfo->_displayMode == RM_DISP_MODE_NORMAL) { ReInfo->_reGraphicItf.shutdowncars(); } ReStoreRaceResults(ReInfo->_reRaceName); ReRaceCleanDrivers(); }
static void AbortRaceHookActivate(void * /* dummy */) { GfuiScreenActivate(ReInfo->_reGameScreen); ReInfo->_reSimItf.shutdown(); if (ReInfo->_displayMode == RM_DISP_MODE_NORMAL) { ReInfo->_reGraphicItf.shutdowncars(); startMenuMusic(); } ReInfo->_reGraphicItf.shutdowntrack(); ReRaceCleanDrivers(); taManager->RaceEnd(); FREEZ(ReInfo->_reCarInfo); /* Return to race menu */ ReInfo->_reState = RE_STATE_CONFIG; }
void ReRaceCleanup(void) { RePhysicsEngine().shutdown(); StandardGame::self().unloadPhysicsEngine(); ReStoreRaceResults(ReInfo->_reRaceName); ReRaceCleanDrivers(); #ifdef THIRD_PARTY_SQLITE3 GfLogInfo("Replay: Database closed\n"); if (replayDB) sqlite3_close(replayDB); replayDB = NULL; #endif replayRecord = 0; }