MCPcopy Create free account
hub / github.com/TASEmulators/fceux / toggleGlobalCheatEnable

Method toggleGlobalCheatEnable

src/drivers/Qt/ConsoleWindow.cpp:3329–3339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3327extern int globalCheatDisabled;
3328
3329void consoleWin_t::toggleGlobalCheatEnable(void)
3330{
3331 FCEU_WRAPPER_LOCK();
3332 FCEUI_GlobalToggleCheat(globalCheatDisabled);
3333 FCEU_WRAPPER_UNLOCK();
3334
3335 g_config->setOption("SDL.CheatsDisabled", globalCheatDisabled);
3336 g_config->save();
3337
3338 updateCheatDialog();
3339}
3340
3341void consoleWin_t::warnAmbiguousShortcut( QShortcut *shortcut)
3342{

Callers

nothing calls this directly

Calls 4

FCEUI_GlobalToggleCheatFunction · 0.85
updateCheatDialogFunction · 0.85
setOptionMethod · 0.80
saveMethod · 0.45

Tested by

no test coverage detected