MCPcopy Create free account
hub / github.com/DFHack/dfhack / install_reset_point

Function install_reset_point

library/modules/Textures.cpp:419–424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

417IMPLEMENT_VMETHOD_INTERPOSE(tracking_stage_new_arena, logic);
418
419static void install_reset_point() {
420 INTERPOSE_HOOK(tracking_stage_new_region, logic).apply();
421 INTERPOSE_HOOK(tracking_stage_adopt_region, logic).apply();
422 INTERPOSE_HOOK(tracking_stage_load_region, logic).apply();
423 INTERPOSE_HOOK(tracking_stage_new_arena, logic).apply();
424}
425
426static void uninstall_reset_point() {
427 INTERPOSE_HOOK(tracking_stage_new_region, logic).remove();

Callers 1

initMethod · 0.85

Calls 1

applyMethod · 0.45

Tested by

no test coverage detected