mirror of
https://github.com/sanni/cartreader.git
synced 2024-11-13 08:25:05 +01:00
Update NGP.ino
Fix path error for "Cotton (Japan)" and "Cotton (Europe)". Thx ickaze.
This commit is contained in:
parent
e98d21f9c1
commit
4a5b19794c
@ -156,9 +156,14 @@ bool getCartInfo_NGP() {
|
|||||||
ngpSystemType = readByte_NGP(0x23);
|
ngpSystemType = readByte_NGP(0x23);
|
||||||
|
|
||||||
// get app name
|
// get app name
|
||||||
for (uint32_t i = 0; i < 17; i++)
|
for (uint32_t i = 0; i < 17; i++) {
|
||||||
romName[i] = readByte_NGP(0x24 + i);
|
romName[i] = readByte_NGP(0x24 + i);
|
||||||
|
|
||||||
|
// replace '/' chars in game name to avoid path errors
|
||||||
|
if (romName[i] == '/')
|
||||||
|
romName[i] = '_';
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user