From 22578d02eb4b0f78cdba6def931faefb5f283938 Mon Sep 17 00:00:00 2001 From: Rafael Kitover Date: Fri, 16 Dec 2022 16:35:15 +0000 Subject: [PATCH] Increase MAX_CART_SIZE from 32MiB to 128MiB Some ROM hacks are larger than 32MiB. Fix #1046 Signed-off-by: Rafael Kitover --- src/Util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Util.cpp b/src/Util.cpp index 5000a137..4e281b95 100644 --- a/src/Util.cpp +++ b/src/Util.cpp @@ -60,7 +60,7 @@ static int(ZEXPORT *utilGzReadFunc)(gzFile, voidp, unsigned int) = NULL; static int(ZEXPORT *utilGzCloseFunc)(gzFile) = NULL; static z_off_t(ZEXPORT *utilGzSeekFunc)(gzFile, z_off_t, int) = NULL; -#define MAX_CART_SIZE 0x2000000 // 32MB +#define MAX_CART_SIZE 0x8000000 // 128MB bool FileExists(const char *filename) {