From c96509a56b532eb7aff8e589b5e76a2b7c9e943f Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Sun, 27 Aug 2017 18:15:00 -0700 Subject: Save/restore mapper state in native save states --- sega_mapper.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sega_mapper.h') diff --git a/sega_mapper.h b/sega_mapper.h index f18c285..10c1680 100644 --- a/sega_mapper.h +++ b/sega_mapper.h @@ -1,5 +1,6 @@ #ifndef SEGA_MAPPER_H_ #define SEGA_MAPPER_H_ +#include "serialize.h" uint16_t read_sram_w(uint32_t address, m68k_context * context); uint8_t read_sram_b(uint32_t address, m68k_context * context); @@ -7,5 +8,7 @@ m68k_context * write_sram_area_w(uint32_t address, m68k_context * context, uint1 m68k_context * write_sram_area_b(uint32_t address, m68k_context * context, uint8_t value); m68k_context * write_bank_reg_w(uint32_t address, m68k_context * context, uint16_t value); m68k_context * write_bank_reg_b(uint32_t address, m68k_context * context, uint8_t value); +void sega_mapper_serialize(genesis_context *gen, serialize_buffer *buf); +void sega_mapper_deserialize(deserialize_buffer *buf, genesis_context *gen); #endif //SEGA_MAPPER_H_ -- cgit v1.2.3