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:
luigi__ 2008-12-19 16:27:01 +00:00
parent aef05f28ed
commit 7a64ad3286
1 changed files with 2054 additions and 2053 deletions

View File

@ -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))
{