diff options
| author | Lioncash <mathew1800@gmail.com> | 2018-09-25 17:38:16 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2018-09-25 20:06:01 -0400 |
| commit | 28bef31ea80478fe58bc4eeaf1b245005f15b36a (patch) | |
| tree | 8ccdb13e155d15b44893a0477984cc83bdf41224 /src/core/file_sys/patch_manager.cpp | |
| parent | 14e2df56101f7c7ab87939ea7a708ab4e6fb70c6 (diff) | |
vfs_concat/vfs_layered: Remove friend declarations from ConcatenatedVfsFile
Given these are only added to the class to allow those functions to
access the private constructor, it's a better approach to just make them
static functions in the interface, to make the dependency explicit.
Diffstat (limited to 'src/core/file_sys/patch_manager.cpp')
| -rw-r--r-- | src/core/file_sys/patch_manager.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/file_sys/patch_manager.cpp b/src/core/file_sys/patch_manager.cpp index af3f9a78f..561ad67a7 100644 --- a/src/core/file_sys/patch_manager.cpp +++ b/src/core/file_sys/patch_manager.cpp @@ -90,10 +90,9 @@ static void ApplyLayeredFS(VirtualFile& romfs, u64 title_id, ContentRecordType t layers.push_back(std::move(extracted)); - const auto layered = LayerDirectories(layers); - + auto layered = LayeredVfsDirectory::MakeLayeredDirectory(std::move(layers)); if (layered != nullptr) { - auto packed = CreateRomFS(layered); + auto packed = CreateRomFS(std::move(layered)); if (packed != nullptr) { LOG_INFO(Loader, " RomFS: LayeredFS patches applied successfully"); |
