aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorsanni <[email protected]>2023-02-13 16:12:19 +0100
committerGitHub <[email protected]>2023-02-13 16:12:19 +0100
commit029538463ad85920d8fdfb6e4f2c00e9f05b2423 (patch)
tree816837c3b069634478629fa3bf44222901be39b0
parente98d21f9c1ffaaca44a2c617790ae0a75f1ccdbf (diff)
parent4a5b19794c83c7b28ac6f669f19f6f3faea8774c (diff)
downloadcartreader-029538463ad85920d8fdfb6e4f2c00e9f05b2423.tar.gz
cartreader-029538463ad85920d8fdfb6e4f2c00e9f05b2423.zip
Merge pull request #709 from PsyK0p4T/master
Update NGP.ino
-rw-r--r--Cart_Reader/NGP.ino7
1 files changed, 6 insertions, 1 deletions
diff --git a/Cart_Reader/NGP.ino b/Cart_Reader/NGP.ino
index 2ad551c..cd81ba5 100644
--- a/Cart_Reader/NGP.ino
+++ b/Cart_Reader/NGP.ino
@@ -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;
}