V24B: Use game code for SNES titles with all japanese name

This commit is contained in:
sanni 2017-05-12 16:08:55 +02:00 committed by GitHub
parent dddf21fc3e
commit 326d37cebd
2 changed files with 15 additions and 3 deletions

View File

@ -2,8 +2,8 @@
Cartridge Reader for Arduino Mega2560
Author: sanni
Date: 2017-05-08
Version: V24
Date: 2017-05-12
Version: V24B
SD lib: https://github.com/greiman/SdFat
LCD lib: https://github.com/adafruit/Adafruit_SSD1306
@ -34,7 +34,7 @@
YamaArashi - GBA flashrom bank switch command
**********************************************************************************/
char ver[5] = "V24";
char ver[5] = "V24B";
/******************************************
Define Output

View File

@ -570,6 +570,18 @@ boolean checkcart_SNES() {
myLength++;
}
}
// If name consists out of all japanese characters use game code
if (myLength == 0) {
// Get rom code
romName[0] = 'S';
romName[1] = 'H';
romName[2] = 'V';
romName[3] = 'C';
romName[4] = '-';
for (unsigned int i = 0; i < 4; i++) {
romName[i + 5] = readBank_SNES(0, 0xFFB2 + i);
}
}
// Read sramSizeExp
byte sramSizeExp;