diff options
author | Subv <subv2112@gmail.com> | 2015-07-23 18:52:57 -0500 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2015-07-23 20:46:11 -0500 |
commit | ce31184557361f3905e81e2ab948de976c51c7e4 (patch) | |
tree | 0e0c8d32173254944e1db376457cd53e2b926c9e /src/core/hle/applets/applet.cpp | |
parent | cea45af64d30e144f71dc98125755758fa7302a0 (diff) |
Service/APT: Return proper parameters in GetLockHandle.
Documented some APT functions
This allows applets to boot.
Diffstat (limited to 'src/core/hle/applets/applet.cpp')
-rw-r--r-- | src/core/hle/applets/applet.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/hle/applets/applet.cpp b/src/core/hle/applets/applet.cpp index 826f6cbb..e9ab6ffd 100644 --- a/src/core/hle/applets/applet.cpp +++ b/src/core/hle/applets/applet.cpp @@ -89,12 +89,21 @@ ResultCode Applet::Start(const Service::APT::AppletStartupParameter& parameter) return result; } +bool IsLibraryAppletRunning() { + // Check the applets map for instances of any applet + for (auto& itr = applets.begin(); itr != applets.end(); ++itr) + if (itr->second != nullptr) + return true; + return false; +} + void Init() { // Register the applet update callback applet_update_event = CoreTiming::RegisterEvent("HLE Applet Update Event", AppletUpdateEvent); } void Shutdown() { + CoreTiming::RemoveEvent(applet_update_event); } } |