aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/applets/applet.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2016-12-07 17:11:39 -0500
committerLioncash <mathew1800@gmail.com>2016-12-07 17:13:46 -0500
commitf1709b8b5986af28546877be4c162884118ca161 (patch)
tree5b4d2b287ea2dbda6e31a9bf3e8ef9bd010a9d50 /src/core/hle/applets/applet.cpp
parent6f71fb2954011c53dbfe1173eea83638c6c8f610 (diff)
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)
return result;
}
+bool Applet::IsRunning() const {
+ return is_running;
+}
+
bool IsLibraryAppletRunning() {
// Check the applets map for instances of any applet
for (auto itr = applets.begin(); itr != applets.end(); ++itr)