Try to find the flash0 directory in headless.

This commit is contained in:
Unknown W. Brackets committed 2013-11-17 10:15:49 -08:00
1 parent c1c1b5213e
commit fa7467f03d
5 files changed
+60 -44

No files matched your search

+4 -4
View File
@@ -392,17 +392,17 @@ void InitSysDirectories() {
if (!g_Config.memCardDirectory.empty() && !g_Config.flash0Directory.empty())
return;
const std::string path = ConvertWStringToUTF8(File::GetExeDirectory());
const std::string path = File::GetExeDirectory();
// Mount a filesystem
g_Config.flash0Directory = path + "/flash0/";
g_Config.flash0Directory = path + "flash0/";
// Detect the "My Documents"(XP) or "Documents"(on Vista/7/8) folder.
wchar_t myDocumentsPath[MAX_PATH];
const HRESULT result = SHGetFolderPath(NULL, CSIDL_PERSONAL, NULL, SHGFP_TYPE_CURRENT, myDocumentsPath);
const std::string myDocsPath = ConvertWStringToUTF8(myDocumentsPath) + "/PPSSPP/";
const std::string installedFile = path + "/installed.txt";
const std::string installedFile = path + "installed.txt";
const bool installed = File::Exists(installedFile);
// If installed.txt exists(and we can determine the Documents directory)
@@ -430,7 +430,7 @@ void InitSysDirectories() {
if (lastSlash != (g_Config.memCardDirectory.length() - 1))
g_Config.memCardDirectory.append("/");
} else {
g_Config.memCardDirectory = path + "/memstick/";
g_Config.memCardDirectory = path + "memstick/";
}
// Create the memstickpath before trying to write to it, and fall back on Documents yet again