Add command line option --vsh to try to boot the VSH. Logspam reduction, improve printf logs.

This commit is contained in:
Henrik Rydgård
2026-07-27 14:58:59 +02:00
parent 5c1d113279
commit 4bf36fc7f8
10 changed files with 54 additions and 31 deletions
+15 -10
View File
@@ -68,18 +68,23 @@ DirectoryFileSystem::DirectoryFileSystem(IHandleAllocator *_hAlloc, const Path &
static const std::string_view mixedCase = "wJpCzSBNnZfxSgoS";
static const std::string_view upperCase = "WJPCZSBNNZFXSGOS";
// Check for case sensitivity
bool checkSucceeded = false;
File::CreateEmptyFile(basePath / mixedCase);
if (File::Exists(basePath / mixedCase)) {
checkSucceeded = true;
if (!File::Exists(basePath / upperCase)) {
flags |= FileSystemFlags::CASE_SENSITIVE;
// Check for case sensitivity. TODO: Add more special cases to avoid the file creation dance.
#if !PPSSPP_PLATFORM(WINDOWS)
if (basePath.Type() == PathType::CONTENT_URI) {
// Android: Is not case sensitive.
} else {
bool checkSucceeded = false;
File::CreateEmptyFile(basePath / mixedCase);
if (File::Exists(basePath / mixedCase)) {
checkSucceeded = true;
if (!File::Exists(basePath / upperCase)) {
flags |= FileSystemFlags::CASE_SENSITIVE;
}
}
File::Delete(basePath / mixedCase);
INFO_LOG(Log::IO, "Is file system case sensitive? %s (base: '%s') (checkOK: %d)", (flags & FileSystemFlags::CASE_SENSITIVE) ? "yes" : "no", _basePath.c_str(), checkSucceeded);
}
File::Delete(basePath / mixedCase);
INFO_LOG(Log::IO, "Is file system case sensitive? %s (base: '%s') (checkOK: %d)", (flags & FileSystemFlags::CASE_SENSITIVE) ? "yes" : "no", _basePath.c_str(), checkSucceeded);
#endif
hAlloc = _hAlloc;
}