Merge remote-tracking branch 'upstream/master' into HomeMenu

This commit is contained in:
Nomi 2023-09-26 04:30:52 +02:00
commit 099a3066e5

View file

@ -145,7 +145,8 @@ HorizonResult SystemSaveDataArchive::deleteFile(const FSPath& path) {
Rust::Result<DirectorySession, HorizonResult> SystemSaveDataArchive::openDirectory(const FSPath& path) { Rust::Result<DirectorySession, HorizonResult> SystemSaveDataArchive::openDirectory(const FSPath& path) {
if (path.type == PathType::UTF16) { if (path.type == PathType::UTF16) {
if (!isPathSafe<PathType::UTF16>(path)) { if (!isPathSafe<PathType::UTF16>(path)) {
Helpers::panic("Unsafe path in SystemSaveData::OpenDirectory"); Helpers::warn("Unsafe path in SystemSaveData::OpenDirectory");
return Err(Result::FS::FileNotFoundAlt);
} }
fs::path p = IOFile::getAppData() / ".." / "SharedFiles" / "SystemSaveData"; fs::path p = IOFile::getAppData() / ".." / "SharedFiles" / "SystemSaveData";