diff options
author | condut <> | 2015-07-09 23:55:23 +0200 |
---|---|---|
committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-07-14 00:57:12 +0200 |
commit | c385b7767d32eccabbfeaa12764310cfc3d113b9 (patch) | |
tree | 1868679b3e7c30c05eb76d5e1f09fd01c86e3e65 /src/core/file_sys/archive_romfs.cpp | |
parent | Merge pull request #927 from yuriks/getopt-fix (diff) | |
download | yuzu-c385b7767d32eccabbfeaa12764310cfc3d113b9.tar yuzu-c385b7767d32eccabbfeaa12764310cfc3d113b9.tar.gz yuzu-c385b7767d32eccabbfeaa12764310cfc3d113b9.tar.bz2 yuzu-c385b7767d32eccabbfeaa12764310cfc3d113b9.tar.lz yuzu-c385b7767d32eccabbfeaa12764310cfc3d113b9.tar.xz yuzu-c385b7767d32eccabbfeaa12764310cfc3d113b9.tar.zst yuzu-c385b7767d32eccabbfeaa12764310cfc3d113b9.zip |
Diffstat (limited to 'src/core/file_sys/archive_romfs.cpp')
-rw-r--r-- | src/core/file_sys/archive_romfs.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/core/file_sys/archive_romfs.cpp b/src/core/file_sys/archive_romfs.cpp index c1e45dfeb..b792b1c8c 100644 --- a/src/core/file_sys/archive_romfs.cpp +++ b/src/core/file_sys/archive_romfs.cpp @@ -17,16 +17,15 @@ namespace FileSys { -ArchiveFactory_RomFS::ArchiveFactory_RomFS(const Loader::AppLoader& app_loader) - : romfs_data(std::make_shared<std::vector<u8>>()) { +ArchiveFactory_RomFS::ArchiveFactory_RomFS(const Loader::AppLoader& app_loader) { // Load the RomFS from the app - if (Loader::ResultStatus::Success != app_loader.ReadRomFS(*romfs_data)) { + if (Loader::ResultStatus::Success != app_loader.ReadRomFS(romfs_file, data_offset, data_size)) { LOG_ERROR(Service_FS, "Unable to read RomFS!"); } } ResultVal<std::unique_ptr<ArchiveBackend>> ArchiveFactory_RomFS::Open(const Path& path) { - auto archive = Common::make_unique<IVFCArchive>(romfs_data); + auto archive = Common::make_unique<IVFCArchive>(romfs_file, data_offset, data_size); return MakeResult<std::unique_ptr<ArchiveBackend>>(std::move(archive)); } |