Let's just always use PSP/Cheats/, it's simpler.
No reason people on iOS won't want this.
This commit is contained in:
parent
8cd64a9f8a
commit
f3e3f2e6cd
1 changed files with 1 additions and 6 deletions
|
@ -7,7 +7,6 @@
|
||||||
#include "MIPS/MIPS.h"
|
#include "MIPS/MIPS.h"
|
||||||
#include "Core/Config.h"
|
#include "Core/Config.h"
|
||||||
|
|
||||||
const static std::string CHEATS_DIR = "cheats";
|
|
||||||
static int CheatEvent = -1;
|
static int CheatEvent = -1;
|
||||||
std::string gameTitle;
|
std::string gameTitle;
|
||||||
std::string activeCheatFile;
|
std::string activeCheatFile;
|
||||||
|
@ -29,13 +28,9 @@ static void __CheatStart() {
|
||||||
__CheatStop();
|
__CheatStop();
|
||||||
|
|
||||||
gameTitle = g_paramSFO.GetValueString("DISC_ID");
|
gameTitle = g_paramSFO.GetValueString("DISC_ID");
|
||||||
#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");
|
File::CreateFullPath(g_Config.memCardDirectory + "PSP/Cheats");
|
||||||
#else
|
|
||||||
activeCheatFile = CHEATS_DIR + "/" + gameTitle + ".ini";
|
|
||||||
File::CreateFullPath(CHEATS_DIR);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (!File::Exists(activeCheatFile)) {
|
if (!File::Exists(activeCheatFile)) {
|
||||||
File::CreateEmptyFile(activeCheatFile);
|
File::CreateEmptyFile(activeCheatFile);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue