Mercurial > repos > blastem
changeset 2229:f699f9d500b4
Fix build
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 05 Sep 2022 23:48:17 -0700 |
parents | 0db9dc6a9020 |
children | 3888c7ed4e36 |
files | gst.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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)) {