fixed crash when used as wiiflow plugin.

This commit is contained in:
Daryl Borth 2019-02-20 18:45:11 -07:00
parent 9e0d835195
commit 19f8899759

View File

@ -120,7 +120,11 @@ static void ResetText()
LoadLanguage(); LoadLanguage();
if(mainWindow) if(mainWindow)
{
HaltGui();
mainWindow->ResetText(); mainWindow->ResetText();
ResumeGui();
}
} }
static int currentLanguage = -1; static int currentLanguage = -1;
@ -169,10 +173,8 @@ void ChangeLanguage() {
} }
} }
#endif #endif
HaltGui();
ResetText(); ResetText();
currentLanguage = GCSettings.language; currentLanguage = GCSettings.language;
ResumeGui();
} }
/**************************************************************************** /****************************************************************************