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

Function CommandStateSave

src/input.cpp:1061–1080  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1059}
1060
1061static void CommandStateSave(void)
1062{
1063 if (FCEUMOV_Mode(MOVIEMODE_TASEDITOR))
1064 {
1065#ifdef __WIN_DRIVER__
1066 handleEmuCmdByTaseditor(execcmd);
1067#endif
1068 } else
1069 {
1070 // FCEU_PrintError("execcmd=%d, EMUCMD_SAVE_STATE_SLOT_0=%d, EMUCMD_SAVE_STATE_SLOT_9=%d", execcmd,EMUCMD_SAVE_STATE_SLOT_0,EMUCMD_SAVE_STATE_SLOT_9);
1071 if(execcmd >= EMUCMD_SAVE_STATE_SLOT_0 && execcmd <= EMUCMD_SAVE_STATE_SLOT_9)
1072 {
1073 int oldslot=FCEUI_SelectState(execcmd-EMUCMD_SAVE_STATE_SLOT_0, 0);
1074 FCEUI_SaveState(0);
1075 FCEUI_SelectState(oldslot, 0);
1076 }
1077 else
1078 FCEUI_SaveState(0);
1079 }
1080}
1081
1082static void CommandStateLoad(void)
1083{

Callers

nothing calls this directly

Calls 4

FCEUMOV_ModeFunction · 0.85
handleEmuCmdByTaseditorFunction · 0.85
FCEUI_SelectStateFunction · 0.85
FCEUI_SaveStateFunction · 0.85

Tested by

no test coverage detected