Allow Win32 to store its saves, config files, etc., elsewhere.
If installed.txt exists(or the executable directory is read-only), use the user's My Documents(XP) or Documents(7/8/8.1) directory to search for everything. If it doesn't, or we can't determine the directory for some reason, use the old behaviour.
This commit is contained in:
parent
dbe50b0c9b
commit
b3018eb37f
3 changed files with 27 additions and 7 deletions
|
@ -153,7 +153,7 @@ UI::EventReturn CwCheatScreen::OnImportCheat(UI::EventParams ¶ms)
|
|||
std::vector<std::string> title;
|
||||
bool finished = false, skip = false;
|
||||
std::vector<std::string> newList;
|
||||
#if defined(ANDROID) || defined(__SYMBIAN32__) || defined(BLACKBERRY)
|
||||
#if defined(ANDROID) || defined(__SYMBIAN32__) || defined(BLACKBERRY) || defined(_WIN32)
|
||||
std::string cheatDir = g_Config.memCardDirectory + "PSP/Cheats/cheat.db";
|
||||
is.open(cheatDir.c_str());
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue