diff options
author | Zach Hilman <zachhilman@gmail.com> | 2019-04-22 23:56:56 +0200 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2019-09-21 22:43:10 +0200 |
commit | c6ff4a6f4d05eb380616be57e4088003e7aedfcb (patch) | |
tree | a923240a1505dd0ebbf476f43fe7e653a07e3217 /src/core/file_sys/romfs_factory.cpp | |
parent | settings: Update LogSettings to show NAND/SDMC paths from FileUtil (diff) | |
download | yuzu-c6ff4a6f4d05eb380616be57e4088003e7aedfcb.tar yuzu-c6ff4a6f4d05eb380616be57e4088003e7aedfcb.tar.gz yuzu-c6ff4a6f4d05eb380616be57e4088003e7aedfcb.tar.bz2 yuzu-c6ff4a6f4d05eb380616be57e4088003e7aedfcb.tar.lz yuzu-c6ff4a6f4d05eb380616be57e4088003e7aedfcb.tar.xz yuzu-c6ff4a6f4d05eb380616be57e4088003e7aedfcb.tar.zst yuzu-c6ff4a6f4d05eb380616be57e4088003e7aedfcb.zip |
Diffstat (limited to 'src/core/file_sys/romfs_factory.cpp')
-rw-r--r-- | src/core/file_sys/romfs_factory.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/core/file_sys/romfs_factory.cpp b/src/core/file_sys/romfs_factory.cpp index b2ccb2926..c3ee4a158 100644 --- a/src/core/file_sys/romfs_factory.cpp +++ b/src/core/file_sys/romfs_factory.cpp @@ -7,6 +7,7 @@ #include "common/common_types.h" #include "common/logging/log.h" #include "core/core.h" +#include "core/file_sys/card_image.h" #include "core/file_sys/content_archive.h" #include "core/file_sys/nca_metadata.h" #include "core/file_sys/patch_manager.h" @@ -51,13 +52,17 @@ ResultVal<VirtualFile> RomFSFactory::Open(u64 title_id, StorageId storage, Conte res = Core::System::GetInstance().GetContentProvider().GetEntry(title_id, type); break; case StorageId::NandSystem: - res = Service::FileSystem::GetSystemNANDContents()->GetEntry(title_id, type); + res = + Core::System::GetInstance().GetFileSystemController().GetSystemNANDContents()->GetEntry( + title_id, type); break; case StorageId::NandUser: - res = Service::FileSystem::GetUserNANDContents()->GetEntry(title_id, type); + res = Core::System::GetInstance().GetFileSystemController().GetUserNANDContents()->GetEntry( + title_id, type); break; case StorageId::SdCard: - res = Service::FileSystem::GetSDMCContents()->GetEntry(title_id, type); + res = Core::System::GetInstance().GetFileSystemController().GetSDMCContents()->GetEntry( + title_id, type); break; default: UNIMPLEMENTED_MSG("Unimplemented storage_id={:02X}", static_cast<u8>(storage)); |