diff options
author | Zach Hilman <zachhilman@gmail.com> | 2018-12-24 22:19:41 +0100 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2018-12-28 21:32:39 +0100 |
commit | 4c20a3982807386a2e5fc6f536498b73e6f4f6ce (patch) | |
tree | 0b26e40304df106c4e0b1ade9fa60bccdd8b240b /src/core/loader/nsp.cpp | |
parent | hid: Make Hid service accessible and add GetPressState (diff) | |
download | yuzu-4c20a3982807386a2e5fc6f536498b73e6f4f6ce.tar yuzu-4c20a3982807386a2e5fc6f536498b73e6f4f6ce.tar.gz yuzu-4c20a3982807386a2e5fc6f536498b73e6f4f6ce.tar.bz2 yuzu-4c20a3982807386a2e5fc6f536498b73e6f4f6ce.tar.lz yuzu-4c20a3982807386a2e5fc6f536498b73e6f4f6ce.tar.xz yuzu-4c20a3982807386a2e5fc6f536498b73e6f4f6ce.tar.zst yuzu-4c20a3982807386a2e5fc6f536498b73e6f4f6ce.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/loader/nsp.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/loader/nsp.cpp b/src/core/loader/nsp.cpp index 4d4b44571..7fcb12aa2 100644 --- a/src/core/loader/nsp.cpp +++ b/src/core/loader/nsp.cpp @@ -158,4 +158,12 @@ ResultStatus AppLoader_NSP::ReadControlData(FileSys::NACP& nacp) { nacp = *nacp_file; return ResultStatus::Success; } + +ResultStatus AppLoader_NSP::ReadManualRomFS(FileSys::VirtualFile& file) { + const auto nca = nsp->GetNCA(nsp->GetProgramTitleID(), FileSys::ContentRecordType::Manual); + if (nsp->GetStatus() != ResultStatus::Success || nca == nullptr) + return ResultStatus::ErrorNoRomFS; + file = nca->GetRomFS(); + return file == nullptr ? ResultStatus::ErrorNoRomFS : ResultStatus::Success; +} } // namespace Loader |