Skip to content
This repository was archived by the owner on Mar 16, 2026. It is now read-only.

Commit 2430fce

Browse files
committed
Sort GBA database by cart ID and fix nulled out cart ID
1 parent e11821d commit 2430fce

File tree

2 files changed

+6627
-6613
lines changed

2 files changed

+6627
-6613
lines changed

Cart_Reader/GBA.ino

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,13 @@ void getCartInfo_GBA() {
715715
cartID[2] = char(sdBuffer[0xAE]);
716716
cartID[3] = char(sdBuffer[0xAF]);
717717

718+
if (strcmp("", cartID) == 0) {
719+
cartID[0] = 'n';
720+
cartID[1] = 'u';
721+
cartID[2] = 'l';
722+
cartID[3] = 'l';
723+
}
724+
718725
display_Clear();
719726
println_Msg(F("Searching database..."));
720727
display_Update();
@@ -837,6 +844,13 @@ void getCartInfo_GBA() {
837844
// Get name
838845
buildRomName(romName, &sdBuffer[0xA0], 12);
839846

847+
if (strcmp("", romName) == 0) {
848+
romName[0] = 'n';
849+
romName[1] = 'u';
850+
romName[2] = 'l';
851+
romName[3] = 'l';
852+
}
853+
840854
// Get ROM version
841855
romVersion = sdBuffer[0xBC];
842856

0 commit comments

Comments
 (0)