From 5b2b37e775d719fc055ef5e8e59cf965a8049e11 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Wed, 9 Aug 2017 23:26:51 -0700 Subject: New savestates are working. New config file option for selecting format states will be saved in. Mostly complete, needs a little more work before release --- gst.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gst.c') diff --git a/gst.c b/gst.c index 6737eee..c74dab2 100644 --- a/gst.c +++ b/gst.c @@ -236,7 +236,7 @@ uint8_t vdp_load_gst(vdp_context * context, FILE * state_file) } for (int i = 0; i < CRAM_SIZE; i++) { uint16_t value; - write_cram(context, i*2, (tmp_buf[i*2+1] << 8) | tmp_buf[i*2]); + write_cram_internal(context, i*2, (tmp_buf[i*2+1] << 8) | tmp_buf[i*2]); } if (fread(tmp_buf, 2, VSRAM_SIZE, state_file) != VSRAM_SIZE) { fputs("Failed to read VSRAM from savestate\n", stderr); -- cgit v1.2.3