mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-27 08:13:34 +01:00
Fix directory creation. On Android, also create a .nomedia file in PPSSPP_STATE to avoid it showing up in galleries and stuff.
Additionally, commit a little script to help make Windows releases. See #9333
This commit is contained in:
1 parent
e8eb657091
commit
dfae4b6551
2 files changed
+26
-5
No files matched your search
+12
-5
@@ -658,11 +658,6 @@ void InitSysDirectories() {
|
||||
g_Config.memStickDirectory = myDocsPath;
|
||||
INFO_LOG(COMMON, "Memstick directory not present, creating at '%s'", g_Config.memStickDirectory.c_str());
|
||||
}
|
||||
// Create the default directories that a real PSP creates. Good for homebrew so they can
|
||||
// expect a standard environment. Skipping THEME though, that's pointless.
|
||||
File::CreateDir(g_Config.memStickDirectory + "PSP/COMMON");
|
||||
File::CreateDir(g_Config.memStickDirectory + "PSP/GAME");
|
||||
File::CreateDir(g_Config.memStickDirectory + "PSP/SAVEDATA");
|
||||
|
||||
const std::string testFile = g_Config.memStickDirectory + "/_writable_test.$$$";
|
||||
|
||||
@@ -675,6 +670,18 @@ void InitSysDirectories() {
|
||||
if (File::Exists(testFile))
|
||||
File::Delete(testFile);
|
||||
|
||||
// Create the default directories that a real PSP creates. Good for homebrew so they can
|
||||
// expect a standard environment. Skipping THEME though, that's pointless.
|
||||
File::CreateDir(g_Config.memStickDirectory + "PSP");
|
||||
File::CreateDir(g_Config.memStickDirectory + "PSP/COMMON");
|
||||
File::CreateDir(g_Config.memStickDirectory + "PSP/GAME");
|
||||
File::CreateDir(g_Config.memStickDirectory + "PSP/SAVEDATA");
|
||||
File::CreateDir(g_Config.memStickDirectory + "PSP/PPSSPP_STATE");
|
||||
#ifdef ANDROID
|
||||
// Avoid media scanners in PPSSPP_STATE directory
|
||||
File::CreateEmptyFile(g_Config.memStickDirectory + "PSP/PPSSPP_STATE/.nomedia");
|
||||
#endif
|
||||
|
||||
if (g_Config.currentDirectory.empty()) {
|
||||
g_Config.currentDirectory = GetSysDirectory(DIRECTORY_GAME);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user