Skip to content
Snippets Groups Projects
Commit d018ac2c authored by Zach Hilman's avatar Zach Hilman
Browse files

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.
parent 54684fef
No related branches found
No related tags found
Loading
...@@ -17,7 +17,9 @@ enum class WebArgTLVType : u16; ...@@ -17,7 +17,9 @@ enum class WebArgTLVType : u16;
class WebBrowser final : public Applet { class WebBrowser final : public Applet {
public: public:
WebBrowser(Core::Frontend::WebBrowserApplet& frontend); WebBrowser(Core::Frontend::WebBrowserApplet& frontend,
Core::Frontend::ECommerceApplet* frontend_e_commerce = nullptr);
~WebBrowser() override; ~WebBrowser() override;
void Initialize() override; void Initialize() override;
...@@ -50,6 +52,9 @@ private: ...@@ -50,6 +52,9 @@ private:
Core::Frontend::WebBrowserApplet& frontend; Core::Frontend::WebBrowserApplet& frontend;
// Extra frontends for specialized functions
Core::Frontend::ECommerceApplet* frontend_e_commerce;
bool complete = false; bool complete = false;
bool unpacked = false; bool unpacked = false;
ResultCode status = RESULT_SUCCESS; ResultCode status = RESULT_SUCCESS;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment