MCPcopy Create free account
hub / github.com/devkitPro/3ds-hbmenu / main

Function main

source/main.c:30–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28const char* __romfs_path = "sdmc:/boot.3dsx";
29
30int main()
31{
32 Result rc;
33
34 osSetSpeedupEnable(true);
35 rc = romfsInit();
36 if (R_FAILED(rc))
37 svcBreak(USERBREAK_PANIC);
38
39 menuStartupPath();
40 hidSetRepeatParameters(20, 10);
41 ptmuInit();
42 uiInit();
43 drawingInit();
44 textInit();
45 workerInit();
46 launchInit();
47
48 backgroundInit();
49
50 workerSchedule(startup, NULL);
51
52 // Main loop
53 while (aptMainLoop())
54 {
55 if (!uiUpdate()) break;
56 drawingFrame();
57 }
58
59 netloaderExit();
60 netsenderExit();
61 launchExit();
62 workerExit();
63 textExit();
64 drawingExit();
65 romfsExit();
66 ptmuExit();
67 return 0;
68}

Callers

nothing calls this directly

Calls 15

menuStartupPathFunction · 0.85
uiInitFunction · 0.85
drawingInitFunction · 0.85
textInitFunction · 0.85
workerInitFunction · 0.85
launchInitFunction · 0.85
backgroundInitFunction · 0.85
workerScheduleFunction · 0.85
uiUpdateFunction · 0.85
drawingFrameFunction · 0.85
netloaderExitFunction · 0.85
netsenderExitFunction · 0.85

Tested by

no test coverage detected