Fix APT initialization code when RUNFLAG_APTWORKAROUND is set

This commit is contained in:
fincs 2014-10-27 17:30:55 +01:00
parent afd2140cb7
commit 76d55fc97a

View File

@ -30,6 +30,7 @@ Handle aptSleepSync = 0;
u32 aptParameters[0x1000/4]; //TEMP u32 aptParameters[0x1000/4]; //TEMP
static void aptAppStarted(void);
void aptInitCaptureInfo(u32 *ns_capinfo) void aptInitCaptureInfo(u32 *ns_capinfo)
{ {
@ -325,7 +326,8 @@ Result aptInit(void)
// create APT event handler thread // create APT event handler thread
svcCreateThread(&aptEventHandlerThread, aptEventHandler, 0x0, svcCreateThread(&aptEventHandlerThread, aptEventHandler, 0x0,
(u32*)(&aptEventHandlerStack[APT_HANDLER_STACKSIZE/8]), 0x31, 0xfffffffe); (u32*)(&aptEventHandlerStack[APT_HANDLER_STACKSIZE/8]), 0x31, 0xfffffffe);
} } else
aptAppStarted();
svcCreateEvent(&aptStatusEvent, 0); svcCreateEvent(&aptStatusEvent, 0);
svcCreateEvent(&aptSleepSync, 0); svcCreateEvent(&aptSleepSync, 0);