void aptSetStatus(APP_STATUS status) { svcWaitSynchronization(aptStatusMutex, U64_MAX); aptStatus = status; //if(prevstatus != APP_NOTINITIALIZED) //{ if(status == APP_RUNNING) __ctru_speedup_config(); if(status == APP_RUNNING || status == APP_EXITING || status == APP_APPLETSTARTED || status == APP_APPLETCLOSED) svcSignalEvent(aptStatusEvent); //} svcReleaseMutex(aptStatusMutex); }
void aptSetStatus(APT_AppStatus status) { LightLock_Lock(&aptStatusMutex); aptStatus = status; //if(prevstatus != APP_NOTINITIALIZED) //{ if(status == APP_RUNNING) __ctru_speedup_config(); if(status == APP_RUNNING || status == APP_EXITING || status == APP_APPLETSTARTED || status == APP_APPLETCLOSED) svcSignalEvent(aptStatusEvent); //} LightLock_Unlock(&aptStatusMutex); }
void osSetSpeedupEnable(bool enable) { __ctru_speedup = enable; __ctru_speedup_config(); }