MCPcopy Create free account
hub / github.com/JRickey/BattleShip / HookedSpTaskStartGo

Function HookedSpTaskStartGo

workspace/hooktest/src/hooktest.c:27–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25static unsigned gCalls = 0;
26
27static void HookedSpTaskStartGo(void *task) {
28 gCalls++;
29 if ((gCalls % 60) == 0) {
30 mod_log("[HookTest] osSpTaskStartGo detour hit %u times\n", gCalls);
31 }
32 /* Pass through to the unhooked original. */
33 if (gOrigSpTaskStartGo) {
34 gOrigSpTaskStartGo(task);
35 }
36}
37
38MOD_INIT() {
39 void *resolved = mod_resolve_symbol("osSpTaskStartGo");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected