summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/am/applets/web_browser.cpp
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2019-06-07 01:46:36 +0200
committerZach Hilman <zachhilman@gmail.com>2019-06-25 02:07:10 +0200
commit3c4238657d326a7d85cbc9152ca16483383c20e7 (patch)
tree2b71e5603db308fbe6ec27b55fa64153602c2675 /src/core/hle/service/am/applets/web_browser.cpp
parentgeneral_frontend: Add documentation for parental controls and ecommerce applets (diff)
downloadyuzu-3c4238657d326a7d85cbc9152ca16483383c20e7.tar
yuzu-3c4238657d326a7d85cbc9152ca16483383c20e7.tar.gz
yuzu-3c4238657d326a7d85cbc9152ca16483383c20e7.tar.bz2
yuzu-3c4238657d326a7d85cbc9152ca16483383c20e7.tar.lz
yuzu-3c4238657d326a7d85cbc9152ca16483383c20e7.tar.xz
yuzu-3c4238657d326a7d85cbc9152ca16483383c20e7.tar.zst
yuzu-3c4238657d326a7d85cbc9152ca16483383c20e7.zip
Diffstat (limited to 'src/core/hle/service/am/applets/web_browser.cpp')
-rw-r--r--src/core/hle/service/am/applets/web_browser.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/hle/service/am/applets/web_browser.cpp b/src/core/hle/service/am/applets/web_browser.cpp
index 3aa8f2468..2762e0653 100644
--- a/src/core/hle/service/am/applets/web_browser.cpp
+++ b/src/core/hle/service/am/applets/web_browser.cpp
@@ -207,9 +207,10 @@ FileSys::VirtualFile GetApplicationRomFS(u64 title_id, FileSys::ContentRecordTyp
} // Anonymous namespace
-WebBrowser::WebBrowser(Core::Frontend::WebBrowserApplet& frontend,
+WebBrowser::WebBrowser(Core::Frontend::WebBrowserApplet& frontend, u64 current_process_title_id,
Core::Frontend::ECommerceApplet* frontend_e_commerce)
- : frontend(frontend), frontend_e_commerce(frontend_e_commerce) {}
+ : frontend(frontend), frontend_e_commerce(frontend_e_commerce),
+ current_process_title_id(current_process_title_id) {}
WebBrowser::~WebBrowser() = default;
@@ -469,7 +470,7 @@ void WebBrowser::InitializeOffline() {
}
if (title_id == 0) {
- title_id = Core::System::GetInstance().CurrentProcess()->GetTitleID();
+ title_id = current_process_title_id;
}
offline_romfs = GetApplicationRomFS(title_id, type);