Mercurial > repos > blastem
comparison gst.c @ 1111:2eb54e24914e
Mostly working changes to allow support for multiple emulated system types in main blastem program
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 19 Dec 2016 13:28:18 -0800 |
parents | 22e87b739ad6 |
children | 7ab7c8fb34ba |
comparison
equal
deleted
inserted
replaced
1110:d1eed3b1121c | 1111:2eb54e24914e |
---|---|
432 goto error_close; | 432 goto error_close; |
433 } | 433 } |
434 if (!z80_load_gst(gen->z80, gstfile)) { | 434 if (!z80_load_gst(gen->z80, gstfile)) { |
435 goto error_close; | 435 goto error_close; |
436 } | 436 } |
437 gen->ports[0].control = 0x40; | 437 gen->io.ports[0].control = 0x40; |
438 gen->ports[1].control = 0x40; | 438 gen->io.ports[1].control = 0x40; |
439 | 439 |
440 fseek(gstfile, GST_68K_RAM, SEEK_SET); | 440 fseek(gstfile, GST_68K_RAM, SEEK_SET); |
441 for (int i = 0; i < (32*1024);) { | 441 for (int i = 0; i < (32*1024);) { |
442 if (fread(buffer, 1, sizeof(buffer), gstfile) != sizeof(buffer)) { | 442 if (fread(buffer, 1, sizeof(buffer), gstfile) != sizeof(buffer)) { |
443 fputs("Failed to read 68K RAM from savestate\n", stderr); | 443 fputs("Failed to read 68K RAM from savestate\n", stderr); |