mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
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:
1 parent
845a25e897
commit
fec7dab628
2 files changed
+3
-3
No files matched your search
+2
-2
@@ -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);
|
||||
|
||||
@@ -154,7 +154,7 @@ UI::EventReturn CwCheatScreen::OnImportCheat(UI::EventParams ¶ms)
|
||||
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");
|
||||
|
||||
Reference in new issue
Block a user