summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Morph2022-04-01 22:49:05 -0400
committerGravatar Morph2022-04-01 22:50:01 -0400
commit1166c3910dbc7a2ad5baefcc8e8ed827ac439d5a (patch)
treee16c87faf679b2da8776e4095b28a92fea7805b2 /src
parentMerge pull request #8128 from FernandoS27/gc-fixes (diff)
downloadyuzu-1166c3910dbc7a2ad5baefcc8e8ed827ac439d5a.tar.gz
yuzu-1166c3910dbc7a2ad5baefcc8e8ed827ac439d5a.tar.xz
yuzu-1166c3910dbc7a2ad5baefcc8e8ed827ac439d5a.zip
applets/web: Keep foreground (websession) web applet open
This is a hack to keep the foreground (websession) web applet open in games using these such as Super Mario 3D All-Stars.
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/am/applets/applet_web_browser.cpp8
1 files changed, 8 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 bb5cb61be..a4b3fb187 100644
--- a/src/core/hle/service/am/applets/applet_web_browser.cpp
+++ b/src/core/hle/service/am/applets/applet_web_browser.cpp
@@ -446,6 +446,14 @@ void WebBrowser::ExecuteLogin() {
446} 446}
447 447
448void WebBrowser::ExecuteOffline() { 448void WebBrowser::ExecuteOffline() {
449 // TODO (Morph): This is a hack for WebSession foreground web applets such as those used by
450 // Super Mario 3D All-Stars.
451 // TODO (Morph): Implement WebSession.
452 if (applet_mode == LibraryAppletMode::AllForegroundInitiallyHidden) {
453 LOG_WARNING(Service_AM, "WebSession is not implemented");
454 return;
455 }
456
449 const auto main_url = GetMainURL(Common::FS::PathToUTF8String(offline_document)); 457 const auto main_url = GetMainURL(Common::FS::PathToUTF8String(offline_document));
450 458
451 if (!Common::FS::Exists(main_url)) { 459 if (!Common::FS::Exists(main_url)) {