From bbde56398f098dbde1cc4340affc8d30bb7b64e6 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 13 Oct 2013 17:48:03 -0700 Subject: [PATCH] Create the cheats directory always. Seems like things break otherwise? Fixes #4169. --- Core/CwCheat.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Core/CwCheat.cpp b/Core/CwCheat.cpp index 74b94bf1c4..2c9e4c117a 100644 --- a/Core/CwCheat.cpp +++ b/Core/CwCheat.cpp @@ -19,13 +19,14 @@ void __CheatInit() { gameTitle = g_paramSFO.GetValueString("DISC_ID"); #if defined(ANDROID) || defined(__SYMBIAN32__) || defined(_WIN32) activeCheatFile = g_Config.memCardDirectory + "PSP/Cheats/" + gameTitle + ".ini"; + File::CreateFullPath(g_Config.memCardDirectory + "PSP/Cheats"); #else activeCheatFile = CHEATS_DIR + "/" + gameTitle + ".ini"; + File::CreateFullPath(CHEATS_DIR); #endif CheatEvent = CoreTiming::RegisterEvent("CheatEvent", &hleCheat); - File::CreateFullPath(CHEATS_DIR); if (g_Config.bEnableCheats) { if (!File::Exists(activeCheatFile)) { File::CreateEmptyFile(activeCheatFile);