From: fincs Date: Mon, 27 Oct 2014 16:30:55 +0000 (+0100) Subject: Fix APT initialization code when RUNFLAG_APTWORKAROUND is set X-Git-Tag: v0.2.0~75 X-Git-Url: https://chaos.moe/g/?a=commitdiff_plain;h=76d55fc97aa73f31b1befd97b0cbdf4ae67923e3;p=corbenik%2Fctrulib.git Fix APT initialization code when RUNFLAG_APTWORKAROUND is set --- diff --git a/libctru/source/services/apt.c b/libctru/source/services/apt.c index 4d4759a..8c4c6ec 100644 --- a/libctru/source/services/apt.c +++ b/libctru/source/services/apt.c @@ -30,6 +30,7 @@ Handle aptSleepSync = 0; u32 aptParameters[0x1000/4]; //TEMP +static void aptAppStarted(void); void aptInitCaptureInfo(u32 *ns_capinfo) { @@ -325,7 +326,8 @@ Result aptInit(void) // create APT event handler thread svcCreateThread(&aptEventHandlerThread, aptEventHandler, 0x0, (u32*)(&aptEventHandlerStack[APT_HANDLER_STACKSIZE/8]), 0x31, 0xfffffffe); - } + } else + aptAppStarted(); svcCreateEvent(&aptStatusEvent, 0); svcCreateEvent(&aptSleepSync, 0);