32 kB raw cartridges are now loaded at the correct offset.
This commit is contained in:
@@ -128,6 +128,8 @@ cart_image_load(int drive, char *fn)
|
|||||||
fclose(f);
|
fclose(f);
|
||||||
} else {
|
} else {
|
||||||
base = drive ? 0xe0000 : 0xd0000;
|
base = drive ? 0xe0000 : 0xd0000;
|
||||||
|
if (size == 32768)
|
||||||
|
base += 0x8000;
|
||||||
fseek(f, 0x00000000, SEEK_SET);
|
fseek(f, 0x00000000, SEEK_SET);
|
||||||
carts[drive].buf = (uint8_t *) malloc(size);
|
carts[drive].buf = (uint8_t *) malloc(size);
|
||||||
memset(carts[drive].buf, 0x00, size);
|
memset(carts[drive].buf, 0x00, size);
|
||||||
|
Reference in New Issue
Block a user