5f32779ceb
- To override the last used boot mode on soft reboot, you only need to press A if you want to boot to the default option. Holding L(+payload button)/R is enough for the other modes. - Added version number to the config menu - Replaced the memsearch algorithm with a faster one - Integrated 3ds_injector from @yifanlu. This brings us region free and all the other FreeMultiPatcher patches. Other than that, you now have the possibility to display the currently booted NAND/FIRM in System Settings! - Rewritten most code for the config menu. You now can navigate to the first/last options with left and right. - You can now choose the 9.0 FIRM to be default in the config menu. This will essentially switch "no buttons" and L in both modes. - You can now choose the second emuNAND to be default in the config menu. This will essentially switch "B is not pressed" and "B is pressed". - When the second emuNAND is booted, it will persist like the other boot options on soft reboot - Bugfixes
48 lines
1.3 KiB
C
48 lines
1.3 KiB
C
/**
|
|
* @file srv.h
|
|
* @brief Service API.
|
|
*/
|
|
#pragma once
|
|
|
|
/// Initializes the service API.
|
|
Result srvSysInit(void);
|
|
|
|
/// Exits the service API.
|
|
Result srvSysExit(void);
|
|
|
|
/**
|
|
* @brief Retrieves a service handle, retrieving from the environment handle list if possible.
|
|
* @param out Pointer to write the handle to.
|
|
* @param name Name of the service.
|
|
*/
|
|
Result srvSysGetServiceHandle(Handle* out, const char* name);
|
|
|
|
/// Registers the current process as a client to the service API.
|
|
Result srvSysRegisterClient(void);
|
|
|
|
/**
|
|
* @brief Enables service notificatios, returning a notification semaphore.
|
|
* @param semaphoreOut Pointer to output the notification semaphore to.
|
|
*/
|
|
Result srvSysEnableNotification(Handle* semaphoreOut);
|
|
|
|
/**
|
|
* @brief Receives a notification.
|
|
* @param notificationIdOut Pointer to output the ID of the received notification to.
|
|
*/
|
|
Result srvSysReceiveNotification(u32* notificationIdOut);
|
|
|
|
/**
|
|
* @brief Registers the current process as a service.
|
|
* @param out Pointer to write the service handle to.
|
|
* @param name Name of the service.
|
|
* @param maxSessions Maximum number of sessions the service can handle.
|
|
*/
|
|
Result srvSysRegisterService(Handle* out, const char* name, int maxSessions);
|
|
|
|
/**
|
|
* @brief Unregisters the current process as a service.
|
|
* @param name Name of the service.
|
|
*/
|
|
Result srvSysUnregisterService(const char* name);
|