MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / console_cheat

Function console_cheat

TheForceEngine/TFE_DarkForces/mission.cpp:139–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)\

Callers

nothing calls this directly

Calls 6

cheat_getIDFromStringFunction · 0.85
toggleConsoleFunction · 0.85
mission_pauseFunction · 0.85
enableRelativeModeFunction · 0.85
c_strMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected