Changeset View
Changeset View
Standalone View
Standalone View
source/main.cpp
Show First 20 Lines • Show All 702 Lines • ▼ Show 20 Lines | |||||
#if OS_MACOSX | #if OS_MACOSX | ||||
if (g_Shutdown == ShutdownType::RestartAsAtlas) | if (g_Shutdown == ShutdownType::RestartAsAtlas) | ||||
startNewAtlasProcess(g_Mods.GetEnabledMods()); | startNewAtlasProcess(g_Mods.GetEnabledMods()); | ||||
#else | #else | ||||
if (g_Shutdown == ShutdownType::RestartAsAtlas) | if (g_Shutdown == ShutdownType::RestartAsAtlas) | ||||
ATLAS_RunIfOnCmdLine(args, true); | ATLAS_RunIfOnCmdLine(args, true); | ||||
#endif | #endif | ||||
Threading::TaskManager::Instance().ClearQueue(); | Threading::TaskManager::Shutdown(); | ||||
CXeromyces::Terminate(); | CXeromyces::Terminate(); | ||||
} | } | ||||
#if OS_ANDROID | #if OS_ANDROID | ||||
// In Android we compile the engine as a shared library, not an executable, | // In Android we compile the engine as a shared library, not an executable, | ||||
// so rename main() to a different symbol that the wrapper library can load | // so rename main() to a different symbol that the wrapper library can load | ||||
#undef main | #undef main | ||||
#define main pyrogenesis_main | #define main pyrogenesis_main | ||||
Show All 30 Lines |
Wildfire Games · Phabricator