summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2019-04-10 18:29:15 +0200
committerZach Hilman <zachhilman@gmail.com>2019-09-21 22:43:10 +0200
commit62d772eaedbdd983574d2bfd0022fff58b55ca73 (patch)
tree95371b70e637a36a961e460bf79a5bf82bc84998
parentpatch_manager: Add error checking to load dir to prevent crashes (diff)
downloadyuzu-62d772eaedbdd983574d2bfd0022fff58b55ca73.tar
yuzu-62d772eaedbdd983574d2bfd0022fff58b55ca73.tar.gz
yuzu-62d772eaedbdd983574d2bfd0022fff58b55ca73.tar.bz2
yuzu-62d772eaedbdd983574d2bfd0022fff58b55ca73.tar.lz
yuzu-62d772eaedbdd983574d2bfd0022fff58b55ca73.tar.xz
yuzu-62d772eaedbdd983574d2bfd0022fff58b55ca73.tar.zst
yuzu-62d772eaedbdd983574d2bfd0022fff58b55ca73.zip
-rw-r--r--src/core/file_sys/patch_manager.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/file_sys/patch_manager.cpp b/src/core/file_sys/patch_manager.cpp
index 0a4f0ea74..e3ebaca03 100644
--- a/src/core/file_sys/patch_manager.cpp
+++ b/src/core/file_sys/patch_manager.cpp
@@ -408,6 +408,8 @@ static bool IsDirValidAndNonEmpty(const VirtualDir& dir) {
std::map<std::string, std::string, std::less<>> PatchManager::GetPatchVersionNames(
VirtualFile update_raw) const {
+ if (title_id == 0)
+ return {};
std::map<std::string, std::string, std::less<>> out;
const auto& installed = Core::System::GetInstance().GetContentProvider();
const auto& disabled = Settings::values.disabled_addons[title_id];