mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-18 18:37:58 -05:00
Service/APT: Return proper parameters in GetLockHandle.
Documented some APT functions This allows applets to boot.
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -67,6 +67,9 @@ protected:
|
||||
Service::APT::AppletId id; ///< Id of this Applet
|
||||
};
|
||||
|
||||
/// Returns whether a library applet is currently running
|
||||
bool IsLibraryAppletRunning();
|
||||
|
||||
/// Initializes the HLE applets
|
||||
void Init();
|
||||
|
||||
|
Reference in New Issue
Block a user