Fix N64 for gb file extension (#847)

Previous commit detected .gb files as N64
This commit is contained in:
trbocode
2023-11-06 10:34:00 +02:00
committed by GitHub
parent 10b0523482
commit c0e69e170b

View File

@@ -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;