| 137 | static CheatID s_queuedCheatID = CHEAT_NONE; |
| 138 | |
| 139 | void console_cheat(const ConsoleArgList& args) |
| 140 | { |
| 141 | if (args.size() < 2) { return; } |
| 142 | |
| 143 | const char* cheatStr = args[1].c_str(); |
| 144 | s_queuedCheatID = cheat_getIDFromString(cheatStr); |
| 145 | |
| 146 | // Close the console so the cheat can be executed. |
| 147 | TFE_FrontEndUI::toggleConsole(); |
| 148 | mission_pause(JFALSE); |
| 149 | TFE_Input::enableRelativeMode(true); |
| 150 | } |
| 151 | |
| 152 | #define CHEAT_CMD(c) \ |
| 153 | void console_##c (const ConsoleArgList& args)\ |
nothing calls this directly
no test coverage detected