mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Create the cheats directory always.
Seems like things break otherwise? Fixes #4169.
This commit is contained in:
parent
4b2dccd367
commit
bbde56398f
1 changed files with 2 additions and 1 deletions
|
@ -19,13 +19,14 @@ void __CheatInit() {
|
||||||
gameTitle = g_paramSFO.GetValueString("DISC_ID");
|
gameTitle = g_paramSFO.GetValueString("DISC_ID");
|
||||||
#if defined(ANDROID) || defined(__SYMBIAN32__) || defined(_WIN32)
|
#if defined(ANDROID) || defined(__SYMBIAN32__) || defined(_WIN32)
|
||||||
activeCheatFile = g_Config.memCardDirectory + "PSP/Cheats/" + gameTitle + ".ini";
|
activeCheatFile = g_Config.memCardDirectory + "PSP/Cheats/" + gameTitle + ".ini";
|
||||||
|
File::CreateFullPath(g_Config.memCardDirectory + "PSP/Cheats");
|
||||||
#else
|
#else
|
||||||
activeCheatFile = CHEATS_DIR + "/" + gameTitle + ".ini";
|
activeCheatFile = CHEATS_DIR + "/" + gameTitle + ".ini";
|
||||||
|
File::CreateFullPath(CHEATS_DIR);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
CheatEvent = CoreTiming::RegisterEvent("CheatEvent", &hleCheat);
|
CheatEvent = CoreTiming::RegisterEvent("CheatEvent", &hleCheat);
|
||||||
|
|
||||||
File::CreateFullPath(CHEATS_DIR);
|
|
||||||
if (g_Config.bEnableCheats) {
|
if (g_Config.bEnableCheats) {
|
||||||
if (!File::Exists(activeCheatFile)) {
|
if (!File::Exists(activeCheatFile)) {
|
||||||
File::CreateEmptyFile(activeCheatFile);
|
File::CreateEmptyFile(activeCheatFile);
|
||||||
|
|
Loading…
Add table
Reference in a new issue