mirror of
https://github.com/sanni/cartreader.git
synced 2024-11-27 23:14:14 +01:00
V24B: Use game code for SNES titles with all japanese name
This commit is contained in:
parent
dddf21fc3e
commit
326d37cebd
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user