Update NGP.ino

Fix path error for "Cotton (Japan)" and "Cotton (Europe)".
Thx ickaze.
This commit is contained in:
PsyK0p4T 2023-02-13 13:58:39 +01:00 committed by GitHub
parent e98d21f9c1
commit 4a5b19794c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -156,9 +156,14 @@ bool getCartInfo_NGP() {
ngpSystemType = readByte_NGP(0x23);
// 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);
// replace '/' chars in game name to avoid path errors
if (romName[i] == '/')
romName[i] = '_';
}
return true;
}