Mercurial > repos > blastem
comparison gst.c @ 1325:58bfbed6cdb5
Fairly major rework of how active/passive is handled along with how the V30 mode bit is handled. Allows the vertical border extension trick in Overdrive 2 to work right
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Fri, 21 Apr 2017 01:22:52 -0700 |
parents | 0928b68fef2a |
children | 69c25e1188e5 |
comparison
equal
deleted
inserted
replaced
1324:2fc444b69351 | 1325:58bfbed6cdb5 |
---|---|
228 } | 228 } |
229 for (uint16_t i = 0; i < VDP_REGS; i++) | 229 for (uint16_t i = 0; i < VDP_REGS; i++) |
230 { | 230 { |
231 vdp_control_port_write(context, 0x8000 | (i << 8) | tmp_buf[i]); | 231 vdp_control_port_write(context, 0x8000 | (i << 8) | tmp_buf[i]); |
232 } | 232 } |
233 latch_mode(context); | |
234 if (fread(tmp_buf, 1, CRAM_SIZE*2, state_file) != CRAM_SIZE*2) { | 233 if (fread(tmp_buf, 1, CRAM_SIZE*2, state_file) != CRAM_SIZE*2) { |
235 fputs("Failed to read CRAM from savestate\n", stderr); | 234 fputs("Failed to read CRAM from savestate\n", stderr); |
236 return 0; | 235 return 0; |
237 } | 236 } |
238 for (int i = 0; i < CRAM_SIZE; i++) { | 237 for (int i = 0; i < CRAM_SIZE; i++) { |