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

Function enable_hooks

plugins/eventful.cpp:463–472  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

461}
462
463static void enable_hooks(bool enable)
464{
465 INTERPOSE_HOOK(workshop_hook,fillSidebarMenu).apply(enable);
466 INTERPOSE_HOOK(furnace_hook,fillSidebarMenu).apply(enable);
467 INTERPOSE_HOOK(item_hooks,contaminateWound).apply(enable);
468 INTERPOSE_HOOK(proj_unit_hook,checkImpact).apply(enable);
469 INTERPOSE_HOOK(proj_unit_hook,checkMovement).apply(enable);
470 INTERPOSE_HOOK(proj_item_hook,checkImpact).apply(enable);
471 INTERPOSE_HOOK(proj_item_hook,checkMovement).apply(enable);
472}
473static void world_specific_hooks(color_ostream &out,bool enable)
474{
475 if(enable && find_reactions(out))

Callers 2

disable_all_hooksFunction · 0.70

Calls 1

applyMethod · 0.45

Tested by

no test coverage detected