diff options
| author | 2016-12-07 17:11:39 -0500 | |
|---|---|---|
| committer | 2016-12-07 17:13:46 -0500 | |
| commit | f1709b8b5986af28546877be4c162884118ca161 (patch) | |
| tree | 5b4d2b287ea2dbda6e31a9bf3e8ef9bd010a9d50 /src/core/hle/applets/applet.cpp | |
| parent | applet: Make virtual destructor defaulted (diff) | |
| download | yuzu-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.cpp | 4 |
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 | ||
| 104 | bool Applet::IsRunning() const { | ||
| 105 | return is_running; | ||
| 106 | } | ||
| 107 | |||
| 104 | bool IsLibraryAppletRunning() { | 108 | bool 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) |