From 19f88997595f9ba75f5a61eb002493d4b19572ff Mon Sep 17 00:00:00 2001 From: Daryl Borth Date: Wed, 20 Feb 2019 18:45:11 -0700 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 8190a39..2c4e706 100644 --- a/source/menu.cpp +++ b/source/menu.cpp @@ -120,7 +120,11 @@ static void ResetText() LoadLanguage(); if(mainWindow) + { + HaltGui(); mainWindow->ResetText(); + ResumeGui(); + } } static int currentLanguage = -1; @@ -169,10 +173,8 @@ void ChangeLanguage() { } } #endif - HaltGui(); ResetText(); currentLanguage = GCSettings.language; - ResumeGui(); } /****************************************************************************