From ec00dc978cded4a166394a7830e86442c1a56ac7 Mon Sep 17 00:00:00 2001 From: OBattler Date: Fri, 4 Feb 2022 13:34:05 +0100 Subject: [PATCH] File dialogs now pause the emulate machine. --- src/win/win_dialog.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/win/win_dialog.c b/src/win/win_dialog.c index c7d07955d..9ae3edb1a 100644 --- a/src/win/win_dialog.c +++ b/src/win/win_dialog.c @@ -161,6 +161,7 @@ file_dlg_w(HWND hwnd, WCHAR *f, WCHAR *fn, WCHAR *title, int save) OPENFILENAME ofn; BOOL r; /* DWORD err; */ + int old_dopause; /* Initialize OPENFILENAME */ ZeroMemory(&ofn, sizeof(ofn)); @@ -187,10 +188,13 @@ file_dlg_w(HWND hwnd, WCHAR *f, WCHAR *fn, WCHAR *title, int save) ofn.lpstrTitle = title; /* Display the Open dialog box. */ + old_dopause = dopause; + plat_pause(1); if (save) r = GetSaveFileName(&ofn); else r = GetOpenFileName(&ofn); + plat_pause(old_dopause); plat_chdir(usr_path);