Using ALT-F4 when running an unsaved cart will emit a tone #355

This commit is contained in:
BADIM-PC\Vadim 2017-11-20 10:05:32 +03:00
parent f082e3d81d
commit 0adc04df19
1 changed files with 6 additions and 2 deletions

View File

@ -887,8 +887,12 @@ void setCursor(SDL_SystemCursor id)
void hideDialog()
{
studio.tic->api.resume(studio.tic);
studio.mode = TIC_RUN_MODE;
if(studio.dialogMode == TIC_RUN_MODE)
{
studio.tic->api.resume(studio.tic);
studio.mode = TIC_RUN_MODE;
}
else setStudioMode(studio.dialogMode);
}
void showDialog(const char** text, s32 rows, DialogCallback callback, void* data)