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

Function tweak

plugins/tweak/tweak.cpp:163–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161}
162
163static command_result tweak(color_ostream &out, vector <string> &parameters) {
164 if (parameters.empty() || parameters[0] == "list") {
165 out.print("tweaks:\n");
166 for (auto & entry : get_status())
167 out.print(" {:25}: {}\n", entry.first, entry.second ? "enabled" : "disabled");
168 return CR_OK;
169 }
170
171 string cmd = parameters[0];
172 return enable_tweak(cmd, out, parameters);
173}
174
175static int tweak_get_status(lua_State *L) {
176 Lua::Push(L, get_status());

Callers

nothing calls this directly

Calls 4

get_statusFunction · 0.85
enable_tweakFunction · 0.85
emptyMethod · 0.45
printMethod · 0.45

Tested by

no test coverage detected