| 1059 | } |
| 1060 | |
| 1061 | static 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 | |
| 1082 | static void CommandStateLoad(void) |
| 1083 | { |
nothing calls this directly
no test coverage detected