diff options
author | Zach Hilman <zachhilman@gmail.com> | 2018-10-01 23:17:08 +0200 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2018-10-04 17:34:36 +0200 |
commit | 70bd2bb1d3aec23fc052c9612f9e530c1a2de72d (patch) | |
tree | 309d313d8182778919cafff884fd962267d2b38c /src/core/file_sys/patch_manager.cpp | |
parent | ips_layer: Add support for escape sequences and midline comments (diff) | |
download | yuzu-70bd2bb1d3aec23fc052c9612f9e530c1a2de72d.tar yuzu-70bd2bb1d3aec23fc052c9612f9e530c1a2de72d.tar.gz yuzu-70bd2bb1d3aec23fc052c9612f9e530c1a2de72d.tar.bz2 yuzu-70bd2bb1d3aec23fc052c9612f9e530c1a2de72d.tar.lz yuzu-70bd2bb1d3aec23fc052c9612f9e530c1a2de72d.tar.xz yuzu-70bd2bb1d3aec23fc052c9612f9e530c1a2de72d.tar.zst yuzu-70bd2bb1d3aec23fc052c9612f9e530c1a2de72d.zip |
Diffstat (limited to 'src/core/file_sys/patch_manager.cpp')
-rw-r--r-- | src/core/file_sys/patch_manager.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/file_sys/patch_manager.cpp b/src/core/file_sys/patch_manager.cpp index f148e7719..03df24906 100644 --- a/src/core/file_sys/patch_manager.cpp +++ b/src/core/file_sys/patch_manager.cpp @@ -273,11 +273,13 @@ std::map<std::string, std::string, std::less<>> PatchManager::GetPatchVersionNam if (mod_dir != nullptr && mod_dir->GetSize() > 0) { for (const auto& mod : mod_dir->GetSubdirectories()) { std::string types; - if (IsDirValidAndNonEmpty(mod->GetSubdirectory("exefs"))) { + + const auto exefs_dir = mod->GetSubdirectory("exefs"); + if (IsDirValidAndNonEmpty(exefs_dir)) { bool ips = false; bool ipswitch = false; - for (const auto& file : mod->GetSubdirectory("exefs")->GetFiles()) { + for (const auto& file : exefs_dir->GetFiles()) { if (file->GetExtension() == "ips") ips = true; else if (file->GetExtension() == "pchtxt") |