summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service
diff options
context:
space:
mode:
authorFeng Chen <vonchenplus@gmail.com>2021-09-30 09:47:28 +0200
committerFeng Chen <vonchenplus@gmail.com>2021-10-11 07:12:51 +0200
commit0ee2185c59aefdba4fc8c9393fbb3b0d168eb004 (patch)
treebd41554d93e160eac5546fe546d657ebf3b49e90 /src/core/hle/service
parentMerge pull request #7043 from astrelsky/cmake (diff)
downloadyuzu-0ee2185c59aefdba4fc8c9393fbb3b0d168eb004.tar
yuzu-0ee2185c59aefdba4fc8c9393fbb3b0d168eb004.tar.gz
yuzu-0ee2185c59aefdba4fc8c9393fbb3b0d168eb004.tar.bz2
yuzu-0ee2185c59aefdba4fc8c9393fbb3b0d168eb004.tar.lz
yuzu-0ee2185c59aefdba4fc8c9393fbb3b0d168eb004.tar.xz
yuzu-0ee2185c59aefdba4fc8c9393fbb3b0d168eb004.tar.zst
yuzu-0ee2185c59aefdba4fc8c9393fbb3b0d168eb004.zip
Diffstat (limited to 'src/core/hle/service')
-rw-r--r--src/core/hle/service/am/applets/applet_web_browser.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/hle/service/am/applets/applet_web_browser.cpp b/src/core/hle/service/am/applets/applet_web_browser.cpp
index 35f194961..927eeefff 100644
--- a/src/core/hle/service/am/applets/applet_web_browser.cpp
+++ b/src/core/hle/service/am/applets/applet_web_browser.cpp
@@ -24,6 +24,7 @@
#include "core/hle/service/am/applets/applet_web_browser.h"
#include "core/hle/service/filesystem/filesystem.h"
#include "core/hle/service/ns/pl_u.h"
+#include "core/loader/loader.h"
namespace Service::AM::Applets {
@@ -122,6 +123,15 @@ FileSys::VirtualFile GetOfflineRomFS(Core::System& system, u64 title_id,
const auto nca = system.GetContentProvider().GetEntry(title_id, nca_type);
if (nca == nullptr) {
+ if (nca_type == FileSys::ContentRecordType::HtmlDocument) {
+ LOG_WARNING(Service_AM, "Falling back to AppLoader to get the RomFS.");
+ FileSys::VirtualFile romfs;
+ system.GetAppLoader().ReadManualRomFS(romfs);
+ if (romfs != nullptr) {
+ return romfs;
+ }
+ }
+
LOG_ERROR(Service_AM,
"NCA of type={} with title_id={:016X} is not found in the ContentProvider!",
nca_type, title_id);