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:
The Dax 2013-10-13 16:45:13 -04:00
parent dbe50b0c9b
commit b3018eb37f
3 changed files with 27 additions and 7 deletions

View file

@ -153,7 +153,7 @@ UI::EventReturn CwCheatScreen::OnImportCheat(UI::EventParams &params)
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