From f1709b8b5986af28546877be4c162884118ca161 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 7 Dec 2016 17:11:39 -0500 Subject: applet: Move common IsRunning underlying variable to the Applet class Gets rid of basic duplication. --- src/core/hle/applets/applet.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/core/hle/applets/applet.cpp') 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) -- cgit v1.2.3