From db0f33debe4a4eac29d754f05ce60063851e3c16 Mon Sep 17 00:00:00 2001 From: vonmillhausen Date: Tue, 16 May 2023 11:53:08 +0100 Subject: [PATCH] Update buttonMappingChanger.htm Seems like there may be some more significant changes to the data format for the button mappings; I haven't had time to dive into the details yet, so just updating the tool to indicate it knows about the new firmware, but doesn't support it yet --- tools/buttonMappingChanger.htm | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tools/buttonMappingChanger.htm b/tools/buttonMappingChanger.htm index e42d293..66c97b5 100644 --- a/tools/buttonMappingChanger.htm +++ b/tools/buttonMappingChanger.htm @@ -175,7 +175,7 @@ mappingTableOffset = 0x8DBC0C; mappingConsoles = ["Arcade", "Game Boy Advance", "SNES", "Genesis/Mega Drive, Master System", "NES, Game Boy, Game Boy Color"]; bisrvData = data; - document.getElementById("fileOutput").innerHTML = "

INFO: March 28th bisrv.asd detected

"; + document.getElementById("fileOutput").innerHTML = "

INFO: March 28th bisrv.asd detected

"; } else if (data.length == 12648068) { // That's the correct length for an April 20th version of bisrv.asd, so @@ -183,7 +183,14 @@ mappingTableOffset = 0x8DBC9C; mappingConsoles = ["Arcade", "Game Boy Advance", "Game Boy, Game Boy Color", "SNES", "Genesis/Mega Drive, Master System", "NES"]; bisrvData = data; - document.getElementById("fileOutput").innerHTML = "

INFO: April 20th bisrv.asd detected

"; + document.getElementById("fileOutput").innerHTML = "

INFO: April 20th bisrv.asd detected

"; + } + else if (data.length == 12656068) { + // That's the correct length for the May 15th version of the file + // However this firmware version is not currently supported by this tool + // Report this to the user to help avoid confusion in the meantime... + document.getElementById("fileOutput").innerHTML = "

ERROR: May 15th bisrv.asd detected, however this version of the firmware is not currently supported. Please use the SF2000's new built-in button mapping feature in the meantime.

"; + return; } // If we're still checking, next test the file extensions for the individual console's ROMs... else if (/\.(zfb|zip)$/i.exec(file.name)) {