mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-20 17:59:08 +02:00
Try to find the flash0 directory in headless.
This commit is contained in:
1 parent
c1c1b5213e
commit
fa7467f03d
5 files changed
+60
-44
No files matched your search
+4
-4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user