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

Function enable_hooks

plugins/rendermax/rendermax.cpp:278–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

276};
277
278static void enable_hooks(bool enable)
279{
280 INTERPOSE_HOOK(dwarmode_render_hook,render).apply(enable);
281 INTERPOSE_HOOK(dungeon_render_hook,render).apply(enable);
282 if(enable && engine)
283 {
284 engine->loadSettings();
285 }
286}
287
288
289DFhackCExport command_result plugin_onstatechange(color_ostream &out, state_change_event event)

Callers 2

rendermaxFunction · 0.70

Calls 2

loadSettingsMethod · 0.80
applyMethod · 0.45

Tested by

no test coverage detected