Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

applet: Make constructor protected

Lioncashe214e0fca4b1
diff --git a/src/core/hle/applets/applet.h b/src/core/hle/applets/applet.h
index bfdcad1264..b7594d1001 100644
--- a/src/core/hle/applets/applet.h
+++ b/src/core/hle/applets/applet.h
@@ -14,7 +14,6 @@ namespace Applets {
class Applet {
public:
virtual ~Applet() {}
- Applet(Service::APT::AppletId id) : id(id) {}
/**
* Creates an instance of the Applet subclass identified by the parameter.
@@ -56,6 +55,8 @@ public:
virtual void Update() = 0;
protected:
+ explicit Applet(Service::APT::AppletId id) : id(id) {}
+
/**
* Handles the Applet start event, triggered from the application.
* @param parameter Parameter data to handle.