From 8ae26f4b72510e128dea4b120e0723182faa0723 Mon Sep 17 00:00:00 2001 From: owomomo Date: Wed, 12 Jun 2019 00:28:29 +0800 Subject: [PATCH] Detail --- src/drivers/win/cheat.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/drivers/win/cheat.cpp b/src/drivers/win/cheat.cpp index 21bea3ef..8616bdd1 100644 --- a/src/drivers/win/cheat.cpp +++ b/src/drivers/win/cheat.cpp @@ -659,8 +659,7 @@ BOOL CALLBACK CheatConsoleCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM l ofn.nMaxFile = 2048; ofn.lpstrDefExt = "cht"; ofn.Flags = OFN_EXPLORER | OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT | OFN_FILEMUSTEXIST; - std::string initdir = FCEU_GetPath(FCEUMKF_CHEAT) + PSS; - ofn.lpstrInitialDir = initdir.c_str(); + ofn.lpstrInitialDir = FCEU_GetPath(FCEUMKF_CHEAT).c_str(); if (GetOpenFileName(&ofn)) { @@ -699,8 +698,7 @@ BOOL CALLBACK CheatConsoleCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM l ofn.nMaxFile = 2048; ofn.lpstrDefExt = "cht"; ofn.Flags = OFN_EXPLORER | OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT | OFN_FILEMUSTEXIST; - std::string initdir = FCEU_GetPath(FCEUMKF_CHEAT) + PSS; - ofn.lpstrInitialDir = initdir.c_str(); + ofn.lpstrInitialDir = FCEU_GetPath(FCEUMKF_CHEAT).c_str(); if (GetSaveFileName(&ofn)) {