summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Zach Hilman2019-06-05 12:18:53 -0400
committerGravatar Zach Hilman2019-06-24 20:05:11 -0400
commitd018ac2c605f99c825971ee4156e643b02f618e7 (patch)
treef0332d4498924972b35f75321afcecc5104ed85a
parentfrontend: Add base class and default impl for ECommerce applet frontend (diff)
downloadyuzu-d018ac2c605f99c825971ee4156e643b02f618e7.tar.gz
yuzu-d018ac2c605f99c825971ee4156e643b02f618e7.tar.xz
yuzu-d018ac2c605f99c825971ee4156e643b02f618e7.zip
web_browser: Take ECommerce applet frontend optionally in constructor
If it is needed but wasn't passed (or passed nullptr), the Shop handling code will alert and throw an error.
-rw-r--r--src/core/hle/service/am/applets/web_browser.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/hle/service/am/applets/web_browser.h b/src/core/hle/service/am/applets/web_browser.h
index a3d2627f4..42f0a3e8a 100644
--- a/src/core/hle/service/am/applets/web_browser.h
+++ b/src/core/hle/service/am/applets/web_browser.h
@@ -17,7 +17,9 @@ enum class WebArgTLVType : u16;
17 17
18class WebBrowser final : public Applet { 18class WebBrowser final : public Applet {
19public: 19public:
20 WebBrowser(Core::Frontend::WebBrowserApplet& frontend); 20 WebBrowser(Core::Frontend::WebBrowserApplet& frontend,
21 Core::Frontend::ECommerceApplet* frontend_e_commerce = nullptr);
22
21 ~WebBrowser() override; 23 ~WebBrowser() override;
22 24
23 void Initialize() override; 25 void Initialize() override;
@@ -50,6 +52,9 @@ private:
50 52
51 Core::Frontend::WebBrowserApplet& frontend; 53 Core::Frontend::WebBrowserApplet& frontend;
52 54
55 // Extra frontends for specialized functions
56 Core::Frontend::ECommerceApplet* frontend_e_commerce;
57
53 bool complete = false; 58 bool complete = false;
54 bool unpacked = false; 59 bool unpacked = false;
55 ResultCode status = RESULT_SUCCESS; 60 ResultCode status = RESULT_SUCCESS;