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

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