From a9cab011851d344196a355f9f0260315936342e0 Mon Sep 17 00:00:00 2001 From: Sam Huang Date: Sun, 31 Mar 2024 01:57:07 -0700 Subject: [PATCH] Don't change cwd with file dialogs --- src/dialog/windows/SDL_windowsdialog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dialog/windows/SDL_windowsdialog.c b/src/dialog/windows/SDL_windowsdialog.c index 93c5180c2..61fde649b 100644 --- a/src/dialog/windows/SDL_windowsdialog.c +++ b/src/dialog/windows/SDL_windowsdialog.c @@ -186,7 +186,7 @@ void windows_ShowFileDialog(void *ptr) dialog.nMaxFileTitle = MAX_PATH; dialog.lpstrInitialDir = *initfolder ? initfolder : NULL; dialog.lpstrTitle = NULL; - dialog.Flags = flags | OFN_EXPLORER | OFN_HIDEREADONLY; + dialog.Flags = flags | OFN_EXPLORER | OFN_HIDEREADONLY | OFN_NOCHANGEDIR; dialog.nFileOffset = 0; dialog.nFileExtension = 0; dialog.lpstrDefExt = NULL;