diff options
| author | 2019-01-10 17:04:38 -0500 | |
|---|---|---|
| committer | 2019-01-10 17:04:38 -0500 | |
| commit | 83e8ad23310937bb72f4412c15f45231a19202f7 (patch) | |
| tree | 80301af69b14a701f16e21d41ced436850085031 /src/core/loader/xci.cpp | |
| parent | Merge pull request #2010 from ReinUsesLisp/gmem (diff) | |
| parent | build: Copy web engine resources to correct location (diff) | |
| download | yuzu-83e8ad23310937bb72f4412c15f45231a19202f7.tar.gz yuzu-83e8ad23310937bb72f4412c15f45231a19202f7.tar.xz yuzu-83e8ad23310937bb72f4412c15f45231a19202f7.zip | |
Merge pull request #1939 from DarkLordZach/web-applet
applets: Implement HLE web browser applet (LibAppletOff)
Diffstat (limited to 'src/core/loader/xci.cpp')
| -rw-r--r-- | src/core/loader/xci.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/loader/xci.cpp b/src/core/loader/xci.cpp index e67e43c69..ff60a3756 100644 --- a/src/core/loader/xci.cpp +++ b/src/core/loader/xci.cpp | |||
| @@ -128,4 +128,13 @@ ResultStatus AppLoader_XCI::ReadControlData(FileSys::NACP& control) { | |||
| 128 | return ResultStatus::Success; | 128 | return ResultStatus::Success; |
| 129 | } | 129 | } |
| 130 | 130 | ||
| 131 | ResultStatus AppLoader_XCI::ReadManualRomFS(FileSys::VirtualFile& file) { | ||
| 132 | const auto nca = xci->GetSecurePartitionNSP()->GetNCA(xci->GetProgramTitleID(), | ||
| 133 | FileSys::ContentRecordType::Manual); | ||
| 134 | if (xci->GetStatus() != ResultStatus::Success || nca == nullptr) | ||
| 135 | return ResultStatus::ErrorXCIMissingPartition; | ||
| 136 | file = nca->GetRomFS(); | ||
| 137 | return file == nullptr ? ResultStatus::ErrorNoRomFS : ResultStatus::Success; | ||
| 138 | } | ||
| 139 | |||
| 131 | } // namespace Loader | 140 | } // namespace Loader |