aboutsummaryrefslogtreecommitdiffhomepage
path: root/Cart_Reader/COLV.ino
diff options
context:
space:
mode:
authorsmesgr9000 <smesgr9000>2024-04-29 19:09:50 +0200
committersmesgr9000 <smesgr9000>2024-04-29 19:09:50 +0200
commit9909fdafb3f4499b140463698ecccb4f33f89bc8 (patch)
tree37fdbb7a367cc866090197055846b559a1e4ab8d /Cart_Reader/COLV.ino
parent06d5f28d0cd2ad53b14cd773d31e8b29c24f1ba6 (diff)
downloadcartreader-9909fdafb3f4499b140463698ecccb4f33f89bc8.tar.gz
cartreader-9909fdafb3f4499b140463698ecccb4f33f89bc8.zip
replace 5200 and ARC cart selection code with code used in NES, COLV & INTV
Diffstat (limited to 'Cart_Reader/COLV.ino')
-rw-r--r--Cart_Reader/COLV.ino13
1 files changed, 4 insertions, 9 deletions
diff --git a/Cart_Reader/COLV.ino b/Cart_Reader/COLV.ino
index a7972f6..9b36242 100644
--- a/Cart_Reader/COLV.ino
+++ b/Cart_Reader/COLV.ino
@@ -370,23 +370,18 @@ struct database_entry_COL {
};
void readDataLine_COL(FsFile& database, struct database_entry_COL* entry) {
- char tempStr2[2];
// Read CRC32 checksum
- sprintf(checksumStr, "%c", database.read());
- for (byte i = 0; i < 7; i++) {
- sprintf(tempStr2, "%c", database.read());
- strcat(checksumStr, tempStr2);
+ for (byte i = 0; i < 8; i++) {
+ checksumStr[i] = char(database.read());
}
// Skip over semicolon
database.seekCur(1);
// Read CRC32 of first 512 bytes
- sprintf(entry->crc_search, "%c", database.read());
- for (byte i = 0; i < 7; i++) {
- sprintf(tempStr2, "%c", database.read());
- strcat(entry->crc_search, tempStr2);
+ for (byte i = 0; i < 8; i++) {
+ entry->crc_search[i] = char(database.read());
}
// Skip over semicolon