summaryrefslogtreecommitdiff
path: root/src/core/hle/applets/applet.cpp
diff options
context:
space:
mode:
authorGravatar Lioncash2016-12-07 17:11:39 -0500
committerGravatar Lioncash2016-12-07 17:13:46 -0500
commitf1709b8b5986af28546877be4c162884118ca161 (patch)
tree5b4d2b287ea2dbda6e31a9bf3e8ef9bd010a9d50 /src/core/hle/applets/applet.cpp
parentapplet: Make virtual destructor defaulted (diff)
downloadyuzu-f1709b8b5986af28546877be4c162884118ca161.tar.gz
yuzu-f1709b8b5986af28546877be4c162884118ca161.tar.xz
yuzu-f1709b8b5986af28546877be4c162884118ca161.zip
applet: Move common IsRunning underlying variable to the Applet class
Gets rid of basic duplication.
Diffstat (limited to 'src/core/hle/applets/applet.cpp')
-rw-r--r--src/core/hle/applets/applet.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/hle/applets/applet.cpp b/src/core/hle/applets/applet.cpp
index 4311d9897..645b2d5fe 100644
--- a/src/core/hle/applets/applet.cpp
+++ b/src/core/hle/applets/applet.cpp
@@ -101,6 +101,10 @@ ResultCode Applet::Start(const Service::APT::AppletStartupParameter& parameter)
101 return result; 101 return result;
102} 102}
103 103
104bool Applet::IsRunning() const {
105 return is_running;
106}
107
104bool IsLibraryAppletRunning() { 108bool IsLibraryAppletRunning() {
105 // Check the applets map for instances of any applet 109 // Check the applets map for instances of any applet
106 for (auto itr = applets.begin(); itr != applets.end(); ++itr) 110 for (auto itr = applets.begin(); itr != applets.end(); ++itr)