mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-26 04:30:06 +00:00
Implemented/stubbed PrepareToCloseApplication
I implemented/stubbed this function in hopes of fixing the crash to desktop issue that homebrew causes when it tries to exit back to the homemenu
This commit is contained in:
parent
c04062cb0f
commit
90fc6dabf7
@ -395,7 +395,11 @@ void StartLibraryApplet(Service::Interface* self) {
|
|||||||
|
|
||||||
cmd_buff[1] = applet->Start(parameter).raw;
|
cmd_buff[1] = applet->Start(parameter).raw;
|
||||||
}
|
}
|
||||||
|
void PrepareToCloseApplication(Service::Interface* self) {
|
||||||
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
||||||
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
||||||
|
LOG_WARNING(Service_APT, "(STUBBED) called");
|
||||||
|
}
|
||||||
void CancelLibraryApplet(Service::Interface* self) {
|
void CancelLibraryApplet(Service::Interface* self) {
|
||||||
u32* cmd_buff = Kernel::GetCommandBuffer();
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
||||||
u32 exiting = cmd_buff[1] & 0xFF;
|
u32 exiting = cmd_buff[1] & 0xFF;
|
||||||
|
@ -321,7 +321,16 @@ void PrepareToStartApplication(Service::Interface* self);
|
|||||||
* 1 : Result of function, 0 on success, otherwise error code
|
* 1 : Result of function, 0 on success, otherwise error code
|
||||||
*/
|
*/
|
||||||
void StartApplication(Service::Interface* self);
|
void StartApplication(Service::Interface* self);
|
||||||
|
/**
|
||||||
|
* APT::PrepareToCloseApplication service function
|
||||||
|
* Inputs:
|
||||||
|
* 0 : Command header [0x00180040]
|
||||||
|
* 1 : u8, Cancel Preload (0 = don't cancel, 1 = cancel)
|
||||||
|
* Outputs:
|
||||||
|
* 0 : Return header
|
||||||
|
* 1 : Result of function, 0 on success, otherwise error code
|
||||||
|
*/
|
||||||
|
void PrepareToCloseApplication(Service::Interface* self);
|
||||||
/**
|
/**
|
||||||
* APT::AppletUtility service function
|
* APT::AppletUtility service function
|
||||||
* Inputs:
|
* Inputs:
|
||||||
|
@ -42,7 +42,7 @@ const Interface::FunctionInfo FunctionTable[] = {
|
|||||||
{0x001F0084, nullptr, "StartSystemApplet"},
|
{0x001F0084, nullptr, "StartSystemApplet"},
|
||||||
{0x00200044, nullptr, "StartNewestHomeMenu"},
|
{0x00200044, nullptr, "StartNewestHomeMenu"},
|
||||||
{0x00210000, nullptr, "OrderToCloseApplication"},
|
{0x00210000, nullptr, "OrderToCloseApplication"},
|
||||||
{0x00220040, nullptr, "PrepareToCloseApplication"},
|
{0x00220040, PrepareToCloseApplication, "PrepareToCloseApplication"},
|
||||||
{0x00230040, nullptr, "PrepareToJumpToApplication"},
|
{0x00230040, nullptr, "PrepareToJumpToApplication"},
|
||||||
{0x00240044, nullptr, "JumpToApplication"},
|
{0x00240044, nullptr, "JumpToApplication"},
|
||||||
{0x002500C0, nullptr, "PrepareToCloseLibraryApplet"},
|
{0x002500C0, nullptr, "PrepareToCloseLibraryApplet"},
|
||||||
|
Loading…
Reference in New Issue
Block a user