From 1a35f03d47f54fc17a79b105ab65c2181864d548 Mon Sep 17 00:00:00 2001 From: Fledge68 Date: Tue, 19 Feb 2019 17:12:03 -0600 Subject: [PATCH] - fixed crash when used as wiiflow plugin. --- source/menu.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/menu.cpp b/source/menu.cpp index 680f5ee..1681d8f 100644 --- a/source/menu.cpp +++ b/source/menu.cpp @@ -138,7 +138,11 @@ static void ResetText() LoadLanguage(); if(mainWindow) + { + HaltGui(); mainWindow->ResetText(); + ResumeGui(); + } } static int currentLanguage = -1; @@ -187,10 +191,8 @@ void ChangeLanguage() { } } #endif - HaltGui(); ResetText(); currentLanguage = GCSettings.language; - ResumeGui(); } /****************************************************************************