Added the flag OFN_NOCHANGEDIR when opening a file (prevents changing the working directory).
This prevents the config file from being exported to the ROM folder, resulting in config saving problems.
This commit is contained in:
parent
aef05f28ed
commit
7a64ad3286
|
@ -1799,6 +1799,7 @@ LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM
|
|||
ofn.lpstrFile = filename;
|
||||
ofn.nMaxFile = MAX_PATH;
|
||||
ofn.lpstrDefExt = "nds";
|
||||
ofn.Flags = OFN_NOCHANGEDIR;
|
||||
|
||||
if(!GetOpenFileName(&ofn))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue