Merge pull request #709 from PsyK0p4T/master

Update NGP.ino
This commit is contained in:
sanni 2023-02-13 16:12:19 +01:00 committed by GitHub
commit 029538463a
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;
}