summaryrefslogtreecommitdiff
path: root/src/core/hle/applets/applet.cpp
diff options
context:
space:
mode:
authorGravatar Subv2015-07-23 18:52:57 -0500
committerGravatar Subv2015-07-23 20:46:11 -0500
commitce31184557361f3905e81e2ab948de976c51c7e4 (patch)
tree0e0c8d32173254944e1db376457cd53e2b926c9e /src/core/hle/applets/applet.cpp
parentMerge pull request #977 from yuriks/glenable-tex2d (diff)
downloadyuzu-ce31184557361f3905e81e2ab948de976c51c7e4.tar.gz
yuzu-ce31184557361f3905e81e2ab948de976c51c7e4.tar.xz
yuzu-ce31184557361f3905e81e2ab948de976c51c7e4.zip
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.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/hle/applets/applet.cpp b/src/core/hle/applets/applet.cpp
index 826f6cbb6..e9ab6ffd8 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)
89 return result; 89 return result;
90} 90}
91 91
92bool IsLibraryAppletRunning() {
93 // Check the applets map for instances of any applet
94 for (auto& itr = applets.begin(); itr != applets.end(); ++itr)
95 if (itr->second != nullptr)
96 return true;
97 return false;
98}
99
92void Init() { 100void Init() {
93 // Register the applet update callback 101 // Register the applet update callback
94 applet_update_event = CoreTiming::RegisterEvent("HLE Applet Update Event", AppletUpdateEvent); 102 applet_update_event = CoreTiming::RegisterEvent("HLE Applet Update Event", AppletUpdateEvent);
95} 103}
96 104
97void Shutdown() { 105void Shutdown() {
106 CoreTiming::RemoveEvent(applet_update_event);
98} 107}
99 108
100} 109}