mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-29 20:04:17 +01:00
Stub (un)lockExit in ISelfController
This commit is contained in:
parent
c2fadffe60
commit
d1c1fa214c
@ -8,6 +8,8 @@
|
||||
|
||||
namespace skyline::service::am {
|
||||
ISelfController::ISelfController(const DeviceState &state, ServiceManager &manager) : libraryAppletLaunchableEvent(std::make_shared<type::KEvent>(state)), BaseService(state, manager, Service::am_ISelfController, "am:ISelfController", {
|
||||
{0x1, SFUNC(ISelfController::LockExit)},
|
||||
{0x2, SFUNC(ISelfController::UnlockExit)},
|
||||
{0x9, SFUNC(ISelfController::GetLibraryAppletLaunchableEvent)},
|
||||
{0xB, SFUNC(ISelfController::SetOperationModeChangedNotification)},
|
||||
{0xC, SFUNC(ISelfController::SetPerformanceModeChangedNotification)},
|
||||
@ -17,6 +19,10 @@ namespace skyline::service::am {
|
||||
{0x28, SFUNC(ISelfController::CreateManagedDisplayLayer)}
|
||||
}) {}
|
||||
|
||||
void ISelfController::LockExit(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {}
|
||||
|
||||
void ISelfController::UnlockExit(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {}
|
||||
|
||||
void ISelfController::GetLibraryAppletLaunchableEvent(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
|
||||
libraryAppletLaunchableEvent->Signal();
|
||||
|
||||
|
@ -17,6 +17,16 @@ namespace skyline::service::am {
|
||||
public:
|
||||
ISelfController(const DeviceState &state, ServiceManager &manager);
|
||||
|
||||
/**
|
||||
* @brief This function prevents the running application from being quit via the home button (https://switchbrew.org/wiki/Applet_Manager_services#LockExit)
|
||||
*/
|
||||
void LockExit(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
||||
|
||||
/**
|
||||
* @brief This function allows the running application to be quit via the home button (https://switchbrew.org/wiki/Applet_Manager_services#UnlockExit)
|
||||
*/
|
||||
void UnlockExit(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
||||
|
||||
/**
|
||||
* @brief This function obtains a handle to the library applet launchable event (https://switchbrew.org/wiki/Applet_Manager_services#GetLibraryAppletLaunchableEvent)
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user