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

Function ResetNES

src/fceu.cpp:911–924  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

909}
910
911void ResetNES(void) {
912 FCEUMOV_AddCommand(FCEUNPCMD_RESET);
913 if (!GameInfo) return;
914 GameInterface(GI_RESETM2);
915 FCEUSND_Reset();
916 FCEUPPU_Reset();
917 X6502_Reset();
918
919 // clear back baffer
920 extern uint8 *XBackBuf;
921 memset(XBackBuf, 0, 256 * 256);
922
923 FCEU_DispMessage("Reset", 0);
924}
925
926
927int RAMInitSeed = 0;

Callers 4

FCEU_DoSimpleCommandFunction · 0.85
FCEUMOV_AddInputStateFunction · 0.85
fceuWrapperSoftResetFunction · 0.85
emuResetFunction · 0.85

Calls 5

FCEUMOV_AddCommandFunction · 0.85
FCEUSND_ResetFunction · 0.85
FCEUPPU_ResetFunction · 0.85
X6502_ResetFunction · 0.85
FCEU_DispMessageFunction · 0.85

Tested by

no test coverage detected