Fix HOME button shiz.

(apparently APP_APPLETSTARTED happens when pressing the HOME button and causes aptWaitStatusEvent() to end prematurely)
This commit is contained in:
StapleButter 2014-11-29 21:04:03 +01:00
parent 32f8e69b96
commit c75ed65d8b

View File

@ -352,9 +352,11 @@ static bool __handle_incoming_parameter() {
return true;
case 0x3: // "Launched library applet finished loading"
if (aptGetStatus() == APP_SUSPENDED) return true;
aptSetStatus(APP_APPLETSTARTED);
return true;
case 0xA: // "Launched library applet closed"
if (aptGetStatus() == APP_SUSPENDED) return true;
if(__apt_launchapplet_parambuf && __apt_launchapplet_parambufsize)memcpy(__apt_launchapplet_parambuf, aptParameters, __apt_launchapplet_parambufsize);
aptSetStatus(APP_APPLETCLOSED);
return true;