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)
// shutdown entire engine
ENGINE_API void SE_EndEngine(void)
static void PlatformSpecificDeinit(void)
{
// !!! FIXME: Move this into GfxLibrary...
#ifdef PLATFORM_WIN32
@ -731,6 +729,12 @@ ENGINE_API void SE_EndEngine(void)
// restore default gamma
system("sudo /usr/pandora/scripts/op_gamma.sh 0");
#endif
}
// shutdown entire engine
ENGINE_API void SE_EndEngine(void)
{
PlatformSpecificDeinit();
// free stocks
delete _pEntityClassStock; _pEntityClassStock = NULL;