From c0e69e170b853e0d0d94aa4441c712a5b455dbda Mon Sep 17 00:00:00 2001 From: trbocode Date: Mon, 6 Nov 2023 10:34:00 +0200 Subject: [PATCH] Fix N64 for gb file extension (#847) Previous commit detected .gb files as N64 --- support/n64/n64.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support/n64/n64.cpp b/support/n64/n64.cpp index 900dfad..2303eb5 100644 --- a/support/n64/n64.cpp +++ b/support/n64/n64.cpp @@ -413,7 +413,7 @@ int n64_rom_tx(const char* name, unsigned char index) { int size = bytes2send; if (use_progress) ProgressMessage(0, 0, 0, 0); - if (index == 2) { + if ((index & 63) == 2) { // Handle non-N64 files (Game Boy) while (bytes2send) { uint32_t chunk = (bytes2send > sizeof(buf)) ? sizeof(buf) : bytes2send;