MCPcopy Create free account
hub / github.com/DFHack/dfhack / command_result plugin_shutdown

Function command_result plugin_shutdown

plugins/examples/ui_addition_example.cpp:41–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39IMPLEMENT_VMETHOD_INTERPOSE(title_version_hook, render);
40
41DFhackCExport command_result plugin_shutdown (color_ostream &out) {
42 DEBUG(log,out).print("shutting down {}\n", plugin_name);
43 INTERPOSE_HOOK(title_version_hook, render).remove();
44 return CR_OK;
45}
46
47DFhackCExport command_result plugin_enable (color_ostream &out, bool enable) {
48 if (enable != is_enabled) {

Callers

nothing calls this directly

Calls 2

printMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected