fix reading mapper > 9 from database

This commit is contained in:
smesgr9000 2024-05-01 09:35:00 +02:00
parent d7c1afd57c
commit ccc06ef4e4
3 changed files with 734 additions and 734 deletions

View File

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

View File

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

File diff suppressed because it is too large Load Diff