Browse Source
Merge pull request #3661 from bunnei/patch-manager-fix
file_sys: patch_manager: Return early when there are no layers to apply.
pull/15/merge
Zach Hilman
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
0 deletions
-
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) |
|
|
if (ext_dir != nullptr) |
|
|
layers_ext.push_back(std::move(ext_dir)); |
|
|
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)); |
|
|
layers.push_back(std::move(extracted)); |
|
|
|
|
|
|
|
|
auto layered = LayeredVfsDirectory::MakeLayeredDirectory(std::move(layers)); |
|
|
auto layered = LayeredVfsDirectory::MakeLayeredDirectory(std::move(layers)); |
|
|
|