diff options
author | bunnei <bunneidev@gmail.com> | 2020-04-14 19:55:19 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2020-04-14 22:25:55 +0200 |
commit | fc35803f9108711a1ba0e41cfe252ed74efca8a4 (patch) | |
tree | a6bf38b200c5ef57971e6542c22944d7f34d2e59 | |
parent | Merge pull request #3636 from ReinUsesLisp/drop-vk-hpp (diff) | |
download | yuzu-fc35803f9108711a1ba0e41cfe252ed74efca8a4.tar yuzu-fc35803f9108711a1ba0e41cfe252ed74efca8a4.tar.gz yuzu-fc35803f9108711a1ba0e41cfe252ed74efca8a4.tar.bz2 yuzu-fc35803f9108711a1ba0e41cfe252ed74efca8a4.tar.lz yuzu-fc35803f9108711a1ba0e41cfe252ed74efca8a4.tar.xz yuzu-fc35803f9108711a1ba0e41cfe252ed74efca8a4.tar.zst yuzu-fc35803f9108711a1ba0e41cfe252ed74efca8a4.zip |
-rw-r--r-- | src/core/file_sys/patch_manager.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/file_sys/patch_manager.cpp b/src/core/file_sys/patch_manager.cpp index e226e9711..e77e82b8d 100644 --- a/src/core/file_sys/patch_manager.cpp +++ b/src/core/file_sys/patch_manager.cpp @@ -348,6 +348,12 @@ static void ApplyLayeredFS(VirtualFile& romfs, u64 title_id, ContentRecordType t if (ext_dir != nullptr) layers_ext.push_back(std::move(ext_dir)); } + + // When there are no layers to apply, return early as there is no need to rebuild the RomFS + if (layers.empty() && layers_ext.empty()) { + return; + } + layers.push_back(std::move(extracted)); auto layered = LayeredVfsDirectory::MakeLayeredDirectory(std::move(layers)); |