| 55 | } |
| 56 | |
| 57 | static bool should_hide_armok(color_ostream &out, const string &cmdline) { |
| 58 | bool should_hide = false; |
| 59 | |
| 60 | Lua::CallLuaModuleFunction(out, "plugins.hotkeys", "should_hide_armok", std::make_tuple(cmdline), |
| 61 | 1, [&](lua_State *L){ |
| 62 | should_hide = lua_toboolean(L, -1); |
| 63 | }); |
| 64 | |
| 65 | return should_hide; |
| 66 | } |
| 67 | |
| 68 | static void add_binding_if_valid(color_ostream &out, const string &sym, const string &cmdline, df::viewscreen *screen, bool filtermenu) { |
| 69 | if (!can_invoke(cmdline, screen)) |
no test coverage detected