# HG changeset patch # User Michael Pavone # Date 1662446897 25200 # Node ID f699f9d500b48e564f2c2adc5e7b55b0091cddd2 # Parent 0db9dc6a9020c3d9aa4a0bdc15d25c2a2a87b9cc Fix build diff -r 0db9dc6a9020 -r f699f9d500b4 gst.c --- a/gst.c Mon Sep 05 23:37:49 2022 -0700 +++ b/gst.c Mon Sep 05 23:48:17 2022 -0700 @@ -95,7 +95,7 @@ } else { context->aregs[8] = read_le_32(buffer + GST_68K_SSP_OFFSET); } - + return pc; } @@ -234,7 +234,7 @@ } for (uint16_t i = 0; i < VDP_REGS; i++) { - vdp_control_port_write(context, 0x8000 | (i << 8) | tmp_buf[i]); + vdp_control_port_write(context, 0x8000 | (i << 8) | tmp_buf[i], context->cycles); } if (fread(tmp_buf, 1, CRAM_SIZE*2, state_file) != CRAM_SIZE*2) { fputs("Failed to read CRAM from savestate\n", stderr); @@ -433,7 +433,7 @@ if (!pc) { goto error_close; } - + if (!vdp_load_gst(gen->vdp, gstfile)) { goto error_close; } @@ -445,7 +445,7 @@ } gen->io.ports[0].control = 0x40; gen->io.ports[1].control = 0x40; - + fseek(gstfile, GST_68K_RAM, SEEK_SET); for (int i = 0; i < (32*1024);) { if (fread(buffer, 1, sizeof(buffer), gstfile) != sizeof(buffer)) {