mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-14 21:37:47 +00:00
implement APT::GetStartupArgument
This commit is contained in:
parent
883e0b1292
commit
a1f65b8ca9
5 changed files with 37 additions and 2 deletions
|
@ -67,6 +67,12 @@ enum class AppletId : u32 {
|
|||
Ed2 = 0x402,
|
||||
};
|
||||
|
||||
enum class StartupArgumentType : u32 {
|
||||
OtherApp = 0,
|
||||
Restart = 1,
|
||||
OtherMedia = 2,
|
||||
};
|
||||
|
||||
/// Send a parameter to the currently-running application, which will read it via ReceiveParameter
|
||||
void SendParameter(const MessageParameter& parameter);
|
||||
|
||||
|
@ -344,6 +350,17 @@ void PreloadLibraryApplet(Service::Interface* self);
|
|||
*/
|
||||
void StartLibraryApplet(Service::Interface* self);
|
||||
|
||||
/**
|
||||
* APT::GetStartupArgument service function
|
||||
* Inputs:
|
||||
* 1 : Parameter Size (capped to 0x300)
|
||||
* 2 : StartupArgumentType
|
||||
* Outputs:
|
||||
* 0 : Return header
|
||||
* 1 : u8, Exists (0 = does not exist, 1 = exists)
|
||||
*/
|
||||
void GetStartupArgument(Service::Interface* self);
|
||||
|
||||
/// Initialize the APT service
|
||||
void Init();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue