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

Function FCEUI_PowerNES

src/input.cpp:776–784  ·  view source on GitHub ↗

Powers off the NES

Source from the content-addressed store, hash-verified

774
775//Powers off the NES
776void FCEUI_PowerNES(void)
777{
778 if(!FCEU_IsValidUI(FCEUI_POWER))
779 return;
780
781 FCEU_DispMessage("Command: Power switch", 0);
782 FCEU_QSimpleCommand(FCEUNPCMD_POWER);
783 ResetFrameCounter();
784}
785
786const char* FCEUI_CommandTypeNames[]=
787{

Callers 4

emu_poweronFunction · 0.85
AppWndProcFunction · 0.85
powerConsoleCBMethod · 0.85
KeyboardCommandsFunction · 0.85

Calls 4

FCEU_IsValidUIFunction · 0.85
FCEU_DispMessageFunction · 0.85
FCEU_QSimpleCommandFunction · 0.85
ResetFrameCounterFunction · 0.85

Tested by

no test coverage detected