comparison gst.c @ 708:61faa298af07

Small horizontal interrupt fixes
author Michael Pavone <pavone@retrodev.com>
date Thu, 14 May 2015 23:17:55 -0700
parents 5439ae7946ca
children cbf97d335444
comparison
equal deleted inserted replaced
707:8aa9aacefe12 708:61faa298af07
421 char ident[5]; 421 char ident[5];
422 if (fread(ident, 1, sizeof(ident), gstfile) != sizeof(ident)) { 422 if (fread(ident, 1, sizeof(ident), gstfile) != sizeof(ident)) {
423 fprintf(stderr, "Could not read ident code from %s\n", fname); 423 fprintf(stderr, "Could not read ident code from %s\n", fname);
424 goto error_close; 424 goto error_close;
425 } 425 }
426 if (memcmp(ident, "GST\x40\xE0", 5) != 0) { 426 if (memcmp(ident, "GST\x40\xE0", 3) != 0) {
427 fprintf(stderr, "%s doesn't appear to be a GST savestate. The ident code is %c%c%c\\x%X\\x%X instead of GST\\x40\\xE0.\n", fname, ident[0], ident[1], ident[2], ident[3], ident[4]); 427 fprintf(stderr, "%s doesn't appear to be a GST savestate. The ident code is %c%c%c\\x%X\\x%X instead of GST\\x40\\xE0.\n", fname, ident[0], ident[1], ident[2], ident[3], ident[4]);
428 goto error_close; 428 goto error_close;
429 } 429 }
430 uint32_t pc = m68k_load_gst(gen->m68k, gstfile); 430 uint32_t pc = m68k_load_gst(gen->m68k, gstfile);
431 if (!pc) { 431 if (!pc) {