From 581601741c3b94bc66a03eece1774618312b260a Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Sun, 6 Aug 2017 00:06:36 -0700 Subject: WIP - New savestate format --- vdp.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'vdp.h') diff --git a/vdp.h b/vdp.h index 6c805c2..a8285c1 100644 --- a/vdp.h +++ b/vdp.h @@ -9,6 +9,7 @@ #include #include #include "system.h" +#include "serialize.h" #define VDP_REGS 24 #define CRAM_SIZE 64 @@ -199,11 +200,9 @@ typedef struct { uint8_t max_sprites_line; uint8_t fetch_tmp[2]; uint8_t v_offset; - uint8_t dma_cd; uint8_t hint_counter; uint8_t flags2; uint8_t double_res; - uint8_t b32; uint8_t buf_a_off; uint8_t buf_b_off; uint8_t debug; @@ -250,5 +249,7 @@ void vdp_check_update_sat_byte(vdp_context *context, uint32_t address, uint8_t v void vdp_pbc_pause(vdp_context *context); void vdp_release_framebuffer(vdp_context *context); void vdp_reacquire_framebuffer(vdp_context *context); +void vdp_serialize(vdp_context *context, serialize_buffer *buf); +void vdp_deserialize(deserialize_buffer *buf, void *vcontext); #endif //VDP_H_ -- cgit v1.2.3