diff --git a/Core/CwCheat.cpp b/Core/CwCheat.cpp index 38b6b2b095..4d82886c99 100644 --- a/Core/CwCheat.cpp +++ b/Core/CwCheat.cpp @@ -29,8 +29,8 @@ static void __CheatStart() { gameTitle = g_paramSFO.GetValueString("DISC_ID"); - activeCheatFile = g_Config.memCardDirectory + "PSP/Cheats/" + gameTitle + ".ini"; - File::CreateFullPath(g_Config.memCardDirectory + "PSP/Cheats"); + activeCheatFile = GetSysDirectory(DIRECTORY_CHEATS) + gameTitle + ".ini"; + File::CreateFullPath(GetSysDirectory(DIRECTORY_CHEATS)); if (!File::Exists(activeCheatFile)) { File::CreateEmptyFile(activeCheatFile); diff --git a/UI/CwCheatScreen.cpp b/UI/CwCheatScreen.cpp index 04c997b68f..80100d159c 100644 --- a/UI/CwCheatScreen.cpp +++ b/UI/CwCheatScreen.cpp @@ -154,7 +154,7 @@ UI::EventReturn CwCheatScreen::OnImportCheat(UI::EventParams ¶ms) bool finished = false, skip = false; std::vector newList; #if defined(ANDROID) || defined(__SYMBIAN32__) || defined(BLACKBERRY) || defined(_WIN32) - std::string cheatDir = g_Config.memCardDirectory + "PSP/Cheats/cheat.db"; + std::string cheatDir = GetSysDirectory(DIRECTORY_CHEATS) + "cheat.db"; is.open(cheatDir.c_str()); #else is.open("cheats/cheat.db");