aboutsummaryrefslogtreecommitdiffhomepage
path: root/Cart_Reader/GBA.ino
diff options
context:
space:
mode:
authorLesserkuma <[email protected]>2022-09-25 17:06:58 +0200
committerLesserkuma <[email protected]>2022-09-25 17:06:58 +0200
commit6098700fddd7b50cccbe0cde0ae8dd64a3587246 (patch)
tree9f0f90140807b280e445b56549ca429ab986487a /Cart_Reader/GBA.ino
parent866f0ce2b561b893c43618249cf5e11f7cb6e8b8 (diff)
parentd086b277ef694eac0a6a56077e7e19cc67983bc3 (diff)
downloadcartreader-6098700fddd7b50cccbe0cde0ae8dd64a3587246.tar.gz
cartreader-6098700fddd7b50cccbe0cde0ae8dd64a3587246.zip
Merge branch 'master'
Diffstat (limited to 'Cart_Reader/GBA.ino')
-rw-r--r--Cart_Reader/GBA.ino6
1 files changed, 3 insertions, 3 deletions
diff --git a/Cart_Reader/GBA.ino b/Cart_Reader/GBA.ino
index 02338c9..7433374 100644
--- a/Cart_Reader/GBA.ino
+++ b/Cart_Reader/GBA.ino
@@ -898,19 +898,19 @@ void getCartInfo_GBA() {
if (isprint(myByte) && myByte != '<' && myByte != '>' && myByte != ':' && myByte != '"' && myByte != '/' && myByte != '\\' && myByte != '|' && myByte != '?' && myByte != '*') {
romName[myLength] = char(myByte);
} else {
- if (romName[myLength-1] == 0x5F) myLength--;
+ if (romName[myLength - 1] == 0x5F) myLength--;
romName[myLength] = 0x5F;
}
myLength++;
}
-
+
// Strip trailing white space
for (unsigned int i = myLength - 1; i > 0; i--) {
if ((romName[i] != 0x5F) && (romName[i] != 0x20)) break;
romName[i] = 0x00;
myLength--;
}
-
+
// Get ROM version
romVersion = sdBuffer[0xBC];