mirror of
https://github.com/izzy2lost/2ship2harkinian-Android.git
synced 2026-06-19 01:20:08 -07:00
execute deinit flow (#191)
This commit is contained in:
@@ -86,11 +86,14 @@ namespace BenGui {
|
||||
}
|
||||
|
||||
void Destroy() {
|
||||
mBenMenuBar = nullptr;
|
||||
mStatsWindow = nullptr;
|
||||
mConsoleWindow = nullptr;
|
||||
mInputEditorWindow = nullptr;
|
||||
mGfxDebuggerWindow = nullptr;
|
||||
|
||||
mSaveEditorWindow = nullptr;
|
||||
mHudEditorWindow = nullptr;
|
||||
mActorViewerWindow = nullptr;
|
||||
mStatsWindow = nullptr;
|
||||
mConsoleWindow = nullptr;
|
||||
mBenMenuBar = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -358,7 +358,7 @@ extern "C" void DeinitOTR() {
|
||||
|
||||
// Destroying gui here because we have shared ptrs to LUS objects which output to SPDLOG which is destroyed before
|
||||
// these shared ptrs.
|
||||
//BenGui::Destroy();
|
||||
BenGui::Destroy();
|
||||
|
||||
OTRGlobals::Instance->context = nullptr;
|
||||
}
|
||||
|
||||
@@ -119,4 +119,6 @@ void SDL_main(int argc, char** argv /* void* arg*/) {
|
||||
|
||||
IrqMgr_RemoveClient(&gIrqMgr, &sIrqClient);
|
||||
osDestroyThread(&gGraphThread);
|
||||
|
||||
DeinitOTR();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user