void LoadSlot(SAVESTATE_t *save, void *lpInput) { bool runsave; CALC* lpCalc = (CALC*) lpInput; if (lpCalc->active == false){ puts("Slot was not active"); return; } if (save == nullptr) { puts("Save was null"); return; } runsave = lpCalc->running; lpCalc->running = false; LoadCPU(save, &lpCalc->cpu); LoadMEM(save, &lpCalc->mem_c); LoadTIMER(save, &lpCalc->timer_c); LoadLCD(save, lpCalc->cpu.pio.lcd); LoadLINK(save, lpCalc->cpu.pio.link); LoadSTDINT(save, lpCalc->cpu.pio.stdint); LoadSE_AUX(save, lpCalc->cpu.pio.se_aux); lpCalc->running = runsave; }
void LoadSlot(SAVESTATE_t *save, void *lpInput) { BOOL runsave; LPCALC lpCalc = (LPCALC) lpInput; if (lpCalc->active == FALSE){ return; } if (save == NULL) { return; } runsave = lpCalc->running; lpCalc->running = FALSE; LoadCPU(save, &lpCalc->cpu); LoadMEM(save, &lpCalc->mem_c); LoadTIMER(save, &lpCalc->timer_c); LoadLCD(save, lpCalc->cpu.pio.lcd); LoadLINK(save, lpCalc->cpu.pio.link); LoadSTDINT(save, lpCalc->cpu.pio.stdint); LoadSE_AUX(save, lpCalc->cpu.pio.se_aux); lpCalc->running = runsave; }