From 42d49564b7108211d647fef4b6da10b5d00f620c Mon Sep 17 00:00:00 2001 From: OBattler Date: Fri, 30 Jul 2021 01:39:33 +0200 Subject: [PATCH] 32 kB raw cartridges are now loaded at the correct offset. --- src/device/cartridge.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/device/cartridge.c b/src/device/cartridge.c index 894262aa3..25e8beac7 100644 --- a/src/device/cartridge.c +++ b/src/device/cartridge.c @@ -128,6 +128,8 @@ cart_image_load(int drive, char *fn) fclose(f); } else { base = drive ? 0xe0000 : 0xd0000; + if (size == 32768) + base += 0x8000; fseek(f, 0x00000000, SEEK_SET); carts[drive].buf = (uint8_t *) malloc(size); memset(carts[drive].buf, 0x00, size);