void ReRaceCleanup(void) { ReInfo->_reGameScreen = ReHookInit(); ReInfo->_reSimItf.shutdown(); if (ReInfo->_displayMode == RM_DISP_MODE_NORMAL) { ReInfo->_reGraphicItf.shutdowncars(); } ReStoreRaceResults(ReInfo->_reRaceName); ReRaceCleanDrivers(); }
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; }