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

Method toggleGameGenie

src/drivers/Qt/ConsoleWindow.cpp:3478–3489  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3476}
3477
3478void consoleWin_t::toggleGameGenie(bool checked)
3479{
3480 int gg_enabled;
3481
3482 FCEU_WRAPPER_LOCK();
3483 g_config->getOption ("SDL.GameGenie", &gg_enabled);
3484 g_config->setOption ("SDL.GameGenie", !gg_enabled);
3485 g_config->save ();
3486 FCEUI_SetGameGenie (gg_enabled);
3487 FCEU_WRAPPER_UNLOCK();
3488 return;
3489}
3490
3491void consoleWin_t::loadGameGenieROM(void)
3492{

Callers

nothing calls this directly

Calls 4

FCEUI_SetGameGenieFunction · 0.85
getOptionMethod · 0.80
setOptionMethod · 0.80
saveMethod · 0.45

Tested by

no test coverage detected