summaryrefslogtreecommitdiff
path: root/sega_mapper.h
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2017-08-27 18:15:00 -0700
committerMichael Pavone <pavone@retrodev.com>2017-08-27 18:15:00 -0700
commitc96509a56b532eb7aff8e589b5e76a2b7c9e943f (patch)
tree160007e470da63c1d6c9761915840937c1c0476d /sega_mapper.h
parentcae76760c6f9167b71b5035326c74d7cecd3c3e8 (diff)
Save/restore mapper state in native save states
Diffstat (limited to 'sega_mapper.h')
-rw-r--r--sega_mapper.h3
1 files changed, 3 insertions, 0 deletions
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_