mirror of
https://github.com/sanni/cartreader.git
synced 2024-11-26 14:34:15 +01:00
fix reading mapper > 9 from database
This commit is contained in:
parent
d7c1afd57c
commit
ccc06ef4e4
@ -1419,7 +1419,7 @@ struct database_entry_MSX {
|
|||||||
|
|
||||||
void readDataLine_MSX(FsFile& database, struct database_entry_MSX* entry) {
|
void readDataLine_MSX(FsFile& database, struct database_entry_MSX* entry) {
|
||||||
// Read mapper
|
// Read mapper
|
||||||
entry->gameMapper = database.read() - 48;
|
entry->gameMapper = ((database.read() - 48) * 10) + (database.read() - 48);
|
||||||
|
|
||||||
// Skip over semicolon
|
// Skip over semicolon
|
||||||
database.seekCur(1);
|
database.seekCur(1);
|
||||||
|
22
sd/README.md
22
sd/README.md
@ -262,22 +262,22 @@ This file stores known MSX games with the required mapper, cart size and ram siz
|
|||||||
|
|
||||||
Example:
|
Example:
|
||||||
Aoki Ookami - Genchou Hishi
|
Aoki Ookami - Genchou Hishi
|
||||||
7,8,4
|
07,8,4
|
||||||
|
|
||||||
Name
|
Name
|
||||||
mapper, cart size, ram size
|
mapper, cart size, ram size
|
||||||
|
|
||||||
mapper:
|
mapper:
|
||||||
0 = NONE
|
00 = NONE
|
||||||
1 = ASCII8
|
01 = ASCII8
|
||||||
2 = ASCII16
|
02 = ASCII16
|
||||||
3 = CROSS BLAIM
|
03 = CROSS BLAIM
|
||||||
4 = GAME MASTER 2
|
04 = GAME MASTER 2
|
||||||
5 = HAL NOTE
|
05 = HAL NOTE
|
||||||
6 = HARRY FOX YUKI
|
06 = HARRY FOX YUKI
|
||||||
7 = KOEI
|
07 = KOEI
|
||||||
8 = KONAMI
|
08 = KONAMI
|
||||||
9 = KONAMI SSC
|
09 = KONAMI SSC
|
||||||
10 = MSX-DOS2
|
10 = MSX-DOS2
|
||||||
11 = PAC/FM-PAC
|
11 = PAC/FM-PAC
|
||||||
12 = R-TYPE
|
12 = R-TYPE
|
||||||
|
1444
sd/msxcart.txt
1444
sd/msxcart.txt
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user