File dialogs now pause the emulate machine.
This commit is contained in:
@@ -161,6 +161,7 @@ file_dlg_w(HWND hwnd, WCHAR *f, WCHAR *fn, WCHAR *title, int save)
|
|||||||
OPENFILENAME ofn;
|
OPENFILENAME ofn;
|
||||||
BOOL r;
|
BOOL r;
|
||||||
/* DWORD err; */
|
/* DWORD err; */
|
||||||
|
int old_dopause;
|
||||||
|
|
||||||
/* Initialize OPENFILENAME */
|
/* Initialize OPENFILENAME */
|
||||||
ZeroMemory(&ofn, sizeof(ofn));
|
ZeroMemory(&ofn, sizeof(ofn));
|
||||||
@@ -187,10 +188,13 @@ file_dlg_w(HWND hwnd, WCHAR *f, WCHAR *fn, WCHAR *title, int save)
|
|||||||
ofn.lpstrTitle = title;
|
ofn.lpstrTitle = title;
|
||||||
|
|
||||||
/* Display the Open dialog box. */
|
/* Display the Open dialog box. */
|
||||||
|
old_dopause = dopause;
|
||||||
|
plat_pause(1);
|
||||||
if (save)
|
if (save)
|
||||||
r = GetSaveFileName(&ofn);
|
r = GetSaveFileName(&ofn);
|
||||||
else
|
else
|
||||||
r = GetOpenFileName(&ofn);
|
r = GetOpenFileName(&ofn);
|
||||||
|
plat_pause(old_dopause);
|
||||||
|
|
||||||
plat_chdir(usr_path);
|
plat_chdir(usr_path);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user