Move system specific deinit to a separate function for now

This commit is contained in:
Joshua Scoggins 2016-04-17 23:02:39 -07:00
parent b221d5fce2
commit e82ad0c131

View File

@ -714,9 +714,7 @@ ENGINE_API void SE_InitEngine(const char *argv0, CTString strGameID)
static void PlatformSpecificDeinit(void)
// shutdown entire engine
ENGINE_API void SE_EndEngine(void)
{ {
// !!! FIXME: Move this into GfxLibrary... // !!! FIXME: Move this into GfxLibrary...
#ifdef PLATFORM_WIN32 #ifdef PLATFORM_WIN32
@ -731,6 +729,12 @@ ENGINE_API void SE_EndEngine(void)
// restore default gamma // restore default gamma
system("sudo /usr/pandora/scripts/op_gamma.sh 0"); system("sudo /usr/pandora/scripts/op_gamma.sh 0");
#endif #endif
}
// shutdown entire engine
ENGINE_API void SE_EndEngine(void)
{
PlatformSpecificDeinit();
// free stocks // free stocks
delete _pEntityClassStock; _pEntityClassStock = NULL; delete _pEntityClassStock; _pEntityClassStock = NULL;