diff --git a/src/core/file_sys/fs.cpp b/src/core/file_sys/fs.cpp index 3c91426cc..cabbcf8f5 100644 --- a/src/core/file_sys/fs.cpp +++ b/src/core/file_sys/fs.cpp @@ -57,7 +57,7 @@ std::filesystem::path MntPoints::GetHostPath(std::string_view guest_directory, b std::filesystem::path host_path = mount->host_path / rel_path; std::filesystem::path patch_path = mount->host_path.string() + "-UPDATE"; - if (std::filesystem::exists(patch_path / rel_path) && Config::getSeparateUpdateEnabled()) { + if (corrected_path.starts_with("/app0/") && std::filesystem::exists(patch_path / rel_path)) { host_path = patch_path / rel_path; } diff --git a/src/emulator.cpp b/src/emulator.cpp index 04375caf2..46bcfea37 100644 --- a/src/emulator.cpp +++ b/src/emulator.cpp @@ -115,8 +115,7 @@ void Emulator::Run(const std::filesystem::path& file) { u32 fw_version; std::filesystem::path game_patch_folder = file.parent_path().concat("-UPDATE"); - bool use_game_patch = std::filesystem::exists(game_patch_folder / "sce_sys") && - Config::getSeparateUpdateEnabled(); + bool use_game_patch = std::filesystem::exists(game_patch_folder / "sce_sys"); std::filesystem::path sce_sys_folder = use_game_patch ? game_patch_folder / "sce_sys" : file.parent_path() / "sce_sys"; if (std::filesystem::is_directory(sce_sys_folder)) { diff --git a/src/qt_gui/game_info.h b/src/qt_gui/game_info.h index abe8a2e9a..640b25e49 100644 --- a/src/qt_gui/game_info.h +++ b/src/qt_gui/game_info.h @@ -28,8 +28,7 @@ public: std::filesystem::path sce_folder_path = filePath / "sce_sys" / "param.sfo"; std::filesystem::path game_update_path = std::filesystem::path(filePath.string() + "-UPDATE"); - if (std::filesystem::exists(game_update_path / "sce_sys" / "param.sfo") && - Config::getSeparateUpdateEnabled()) { + if (std::filesystem::exists(game_update_path / "sce_sys" / "param.sfo")) { sce_folder_path = game_update_path / "sce_sys" / "param.sfo"; } diff --git a/src/qt_gui/gui_context_menus.h b/src/qt_gui/gui_context_menus.h index 9a9edbd44..fba8616af 100644 --- a/src/qt_gui/gui_context_menus.h +++ b/src/qt_gui/gui_context_menus.h @@ -97,7 +97,7 @@ public: QString game_update_path; Common::FS::PathToQString(game_update_path, m_games[itemID].path.concat("-UPDATE")); std::filesystem::path game_folder_path = m_games[itemID].path; - if (std::filesystem::exists(m_games[itemID].path)) { + if (std::filesystem::exists(Common::FS::PathFromQString(game_update_path))) { game_folder_path = Common::FS::PathFromQString(game_update_path); } if (psf.Open(game_folder_path / "sce_sys" / "param.sfo")) { @@ -291,7 +291,7 @@ public: if (selected == deleteGame || selected == deleteUpdate || selected == deleteDLC) { bool error = false; QString folder_path, game_update_path; - Common::FS::PathToQString(folder_path, m_games[itemID].path.concat("-UPDATE")); + Common::FS::PathToQString(folder_path, m_games[itemID].path); Common::FS::PathToQString(game_update_path, m_games[itemID].path.concat("-UPDATE")); QString message_type = tr("Game"); if (selected == deleteUpdate) {