This commit is contained in:
owomomo 2019-06-12 00:28:29 +08:00
parent f3d1b270b5
commit 8ae26f4b72
1 changed files with 2 additions and 4 deletions

View File

@ -659,8 +659,7 @@ BOOL CALLBACK CheatConsoleCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM l
ofn.nMaxFile = 2048; ofn.nMaxFile = 2048;
ofn.lpstrDefExt = "cht"; ofn.lpstrDefExt = "cht";
ofn.Flags = OFN_EXPLORER | OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT | OFN_FILEMUSTEXIST; ofn.Flags = OFN_EXPLORER | OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT | OFN_FILEMUSTEXIST;
std::string initdir = FCEU_GetPath(FCEUMKF_CHEAT) + PSS; ofn.lpstrInitialDir = FCEU_GetPath(FCEUMKF_CHEAT).c_str();
ofn.lpstrInitialDir = initdir.c_str();
if (GetOpenFileName(&ofn)) if (GetOpenFileName(&ofn))
{ {
@ -699,8 +698,7 @@ BOOL CALLBACK CheatConsoleCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM l
ofn.nMaxFile = 2048; ofn.nMaxFile = 2048;
ofn.lpstrDefExt = "cht"; ofn.lpstrDefExt = "cht";
ofn.Flags = OFN_EXPLORER | OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT | OFN_FILEMUSTEXIST; ofn.Flags = OFN_EXPLORER | OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT | OFN_FILEMUSTEXIST;
std::string initdir = FCEU_GetPath(FCEUMKF_CHEAT) + PSS; ofn.lpstrInitialDir = FCEU_GetPath(FCEUMKF_CHEAT).c_str();
ofn.lpstrInitialDir = initdir.c_str();
if (GetSaveFileName(&ofn)) if (GetSaveFileName(&ofn))
{ {