diff options
| -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 | |||
| 348 | if (ext_dir != nullptr) | 348 | if (ext_dir != nullptr) |
| 349 | layers_ext.push_back(std::move(ext_dir)); | 349 | layers_ext.push_back(std::move(ext_dir)); |
| 350 | } | 350 | } |
| 351 | |||
| 352 | // When there are no layers to apply, return early as there is no need to rebuild the RomFS | ||
| 353 | if (layers.empty() && layers_ext.empty()) { | ||
| 354 | return; | ||
| 355 | } | ||
| 356 | |||
| 351 | layers.push_back(std::move(extracted)); | 357 | layers.push_back(std::move(extracted)); |
| 352 | 358 | ||
| 353 | auto layered = LayeredVfsDirectory::MakeLayeredDirectory(std::move(layers)); | 359 | auto layered = LayeredVfsDirectory::MakeLayeredDirectory(std::move(layers)); |