Skip to content

Commit

Permalink
Added cpu.jammed to the save slot.
Browse files Browse the repository at this point in the history
  • Loading branch information
punesemu committed May 11, 2024
1 parent eab01be commit e0074b2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/save_slot.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#include "nsf.h"
#include "cheat.h"

#define SAVE_VERSION 100
#define SAVE_VERSION 101

static BYTE mem_with_size(BYTE mode, BYTE slot, BYTE *mem, size_t msize, FILE *fp);
static void preview_image_from_ppu_screen(BYTE slot, _ppu_screen_buffer *sb, void **dst, size_t *size);
Expand Down Expand Up @@ -257,6 +257,9 @@ BYTE save_slot_operation(BYTE mode, BYTE slot, FILE *fp) {
save_slot_ele(mode, slot, nes[nesidx].c.cpu.prg_ram_rd_active);
save_slot_ele(mode, slot, nes[nesidx].c.cpu.prg_ram_wr_active);
save_slot_ele(mode, slot, nes[nesidx].c.cpu.base_opcode_cycles);
if (save_slot.version >= 101) {
save_slot_ele(mode, slot, nes[nesidx].c.cpu.jammed);
}

// irq
save_slot_ele(mode, slot, nes[nesidx].c.irq.high);
Expand Down

0 comments on commit e0074b2

Please sign in to comment.