Also need this to prevent double-shutdown.

That exit(0) before was skipping a lot of stuff..
This commit is contained in:
Unknown W. Brackets
2014-02-09 18:18:36 -08:00
parent 80704d013e
commit 739da04322
+3
View File
@@ -942,7 +942,10 @@ UI::EventReturn MainScreen::OnForums(UI::EventParams &e) {
UI::EventReturn MainScreen::OnExit(UI::EventParams &e) {
System_SendMessage("event", "exitprogram");
#ifndef USING_WIN_UI
NativeShutdown();
#endif
globalUIState = UISTATE_EXIT;
return UI::EVENT_DONE;
}