MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / OSRegisterResetFunction

Function OSRegisterResetFunction

src/dolphin/src/os/OSReset.c:31–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29static u32 bootThisDol;
30
31void OSRegisterResetFunction(OSResetFunctionInfo* func)
32{
33 OSResetFunctionInfo* tmp;
34 OSResetFunctionInfo* iter;
35
36 for (iter = ResetFunctionQueue.first; iter && iter->priority <= func->priority;
37 iter = iter->next)
38 ;
39
40 if (iter == NULL)
41 {
42 tmp = ResetFunctionQueue.last;
43 if (tmp == NULL)
44 {
45 ResetFunctionQueue.first = func;
46 }
47 else
48 {
49 tmp->next = func;
50 }
51 func->prev = tmp;
52 func->next = NULL;
53 ResetFunctionQueue.last = func;
54 return;
55 }
56
57 func->next = iter;
58 tmp = iter->prev;
59 iter->prev = func;
60 func->prev = tmp;
61 if (tmp == NULL)
62 {
63 ResetFunctionQueue.first = func;
64 return;
65 }
66 tmp->next = func;
67}
68
69inline BOOL __OSCallResetFunctions(u32 arg0)
70{

Callers 4

Config24MBFunction · 0.85
PADInitFunction · 0.85
GXInitFunction · 0.85
CARDInitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected