Mercurial > repos > blastem
comparison gst.c @ 1333:69c25e1188e5
Small tweak to how SAT cache updates are done. Mostly fixes the rotating cube scene in Overdrive 2
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 26 Apr 2017 22:16:12 -0700 |
parents | 58bfbed6cdb5 |
children | 2540c05520f2 |
comparison
equal
deleted
inserted
replaced
1332:87bbc4bec958 | 1333:69c25e1188e5 |
---|---|
249 if (fread(tmp_buf, 1, VRAM_SIZE, state_file) != VRAM_SIZE) { | 249 if (fread(tmp_buf, 1, VRAM_SIZE, state_file) != VRAM_SIZE) { |
250 fputs("Failed to read VRAM from savestate\n", stderr); | 250 fputs("Failed to read VRAM from savestate\n", stderr); |
251 return 0; | 251 return 0; |
252 } | 252 } |
253 for (int i = 0; i < VRAM_SIZE; i++) { | 253 for (int i = 0; i < VRAM_SIZE; i++) { |
254 write_vram_byte(context, i, tmp_buf[i]); | 254 context->vdpmem[i] = tmp_buf[i]; |
255 vdp_check_update_sat_byte(context, i, tmp_buf[i]); | |
255 } | 256 } |
256 return 1; | 257 return 1; |
257 } | 258 } |
258 | 259 |
259 uint8_t vdp_save_gst(vdp_context * context, FILE * outfile) | 260 uint8_t vdp_save_gst(vdp_context * context, FILE * outfile) |