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

Function enable_hooks

plugins/add-spatter.cpp:368–373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

366}
367
368static void enable_hooks(bool enable)
369{
370 is_enabled = enable;
371 INTERPOSE_HOOK(item_hook, isImprovable).apply(enable);
372 INTERPOSE_HOOK(product_hook, produce).apply(enable);
373}
374
375DFhackCExport command_result plugin_load_world_data (color_ostream &out) {
376 if (find_reactions(out)) {

Calls 1

applyMethod · 0.45

Tested by

no test coverage detected