Have CWCheats use it, too. It's useful pretty much anywhere one needs the real path instead of a virtual memory stick path.

This commit is contained in:
The Dax committed 2013-10-15 03:41:11 -04:00
1 parent 845a25e897
commit fec7dab628
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -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);
+1 -1
View File
@@ -154,7 +154,7 @@ UI::EventReturn CwCheatScreen::OnImportCheat(UI::EventParams &params)
bool finished = false, skip = false;
std::vector<std::string> 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");