MCPcopy Create free account
hub / github.com/aldostools/webMAN-MOD / script_thread

Function script_thread

include/feat/script.h:244–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242}
243
244static void script_thread(u64 event_id)
245{
246 if(event_id == EVENT_PER_GAME)
247 {
248 get_game_info();
249 if(strlen(_game_TitleID) >= 9)
250 {
251 char script_file[40];
252 snprintf(script_file, sizeof(script_file), "%s/%s%s", WM_INGAME_PATH, _game_TitleID, ".bat");
253 parse_script(script_file);
254 }
255 }
256 else
257 parse_script(script_events[event_id]);
258
259 sys_ppu_thread_exit(0);
260}
261
262static void start_event(u8 event_id)
263{

Callers

nothing calls this directly

Calls 4

parse_scriptFunction · 0.85
get_game_infoFunction · 0.50
strlenFunction · 0.50
snprintfFunction · 0.50

Tested by

no test coverage detected