diff options
| -rw-r--r-- | src/core/file_sys/patch_manager.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/core/file_sys/patch_manager.cpp b/src/core/file_sys/patch_manager.cpp index 76b51fe56..d0dc731f8 100644 --- a/src/core/file_sys/patch_manager.cpp +++ b/src/core/file_sys/patch_manager.cpp | |||
| @@ -172,7 +172,7 @@ static void ApplyLayeredFS(VirtualFile& romfs, u64 title_id, ContentRecordType t | |||
| 172 | 172 | ||
| 173 | auto ext_dir = subdir->GetSubdirectory("romfs_ext"); | 173 | auto ext_dir = subdir->GetSubdirectory("romfs_ext"); |
| 174 | if (ext_dir != nullptr) | 174 | if (ext_dir != nullptr) |
| 175 | layers.push_back(std::move(ext_dir)); | 175 | layers_ext.push_back(std::move(ext_dir)); |
| 176 | } | 176 | } |
| 177 | layers.push_back(std::move(extracted)); | 177 | layers.push_back(std::move(extracted)); |
| 178 | 178 | ||
| @@ -182,9 +182,6 @@ static void ApplyLayeredFS(VirtualFile& romfs, u64 title_id, ContentRecordType t | |||
| 182 | } | 182 | } |
| 183 | 183 | ||
| 184 | auto layered_ext = LayeredVfsDirectory::MakeLayeredDirectory(std::move(layers_ext)); | 184 | auto layered_ext = LayeredVfsDirectory::MakeLayeredDirectory(std::move(layers_ext)); |
| 185 | if (layered_ext == nullptr) { | ||
| 186 | return; | ||
| 187 | } | ||
| 188 | 185 | ||
| 189 | auto packed = CreateRomFS(std::move(layered), std::move(layered_ext)); | 186 | auto packed = CreateRomFS(std::move(layered), std::move(layered_ext)); |
| 190 | if (packed == nullptr) { | 187 | if (packed == nullptr) { |