MCPcopy Create free account
hub / github.com/devkitPro/libctru / aptLaunchLibraryApplet

Function aptLaunchLibraryApplet

libctru/source/services/apt.c:888–910  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

886}
887
888void aptLaunchLibraryApplet(NS_APPID appId, void* buf, size_t bufsize, Handle handle)
889{
890 bool sleep = aptIsSleepAllowed();
891
892 aptSetSleepAllowed(false);
893 aptFlags &= ~FLAG_SPURIOUS; // If we haven't received a spurious wakeup by now, we probably never will (see aptInit)
894 APT_PrepareToStartLibraryApplet(appId);
895 aptSetSleepAllowed(sleep);
896
897 aptCallHook(APTHOOK_ONSUSPEND);
898
899 GSPGPU_SaveVramSysArea();
900 aptScreenTransfer(appId, false);
901 GSPGPU_ReleaseRight();
902
903 aptSetSleepAllowed(false);
904 APT_StartLibraryApplet(appId, buf, bufsize, handle);
905 aptFlags &= ~FLAG_ACTIVE;
906
907 aptWaitForWakeUp(TR_LIBAPPLET);
908 memcpy(buf, aptParameters, bufsize);
909 aptSetSleepAllowed(sleep);
910}
911
912void aptLaunchSystemApplet(NS_APPID appId, void* buf, size_t bufsize, Handle handle)
913{

Callers 3

errorDispFunction · 0.85
miiSelectorLaunchFunction · 0.85
swkbdInputTextFunction · 0.85

Calls 9

aptIsSleepAllowedFunction · 0.85
aptSetSleepAllowedFunction · 0.85
aptCallHookFunction · 0.85
GSPGPU_SaveVramSysAreaFunction · 0.85
aptScreenTransferFunction · 0.85
GSPGPU_ReleaseRightFunction · 0.85
APT_StartLibraryAppletFunction · 0.85
aptWaitForWakeUpFunction · 0.85

Tested by

no test coverage detected