mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-01 11:29:40 -06:00
libui/windows: don't explode if setWindowText() fails. fixes random crash when closing window.
also add extra safety, can't hurt.
This commit is contained in:
@ -755,6 +755,12 @@ void TryLoadROM(char* file, int prevstatus)
|
||||
|
||||
int OnCloseWindow(uiWindow* window, void* blarg)
|
||||
{
|
||||
if (RunningSomething)
|
||||
{
|
||||
EmuRunning = 2;
|
||||
while (EmuStatus != 2);
|
||||
}
|
||||
|
||||
uiQuit();
|
||||
return 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user