mirror of
https://github.com/sanni/cartreader.git
synced 2024-11-13 08:25:05 +01:00
Merge branch 'master' of github.com:lesserkuma/sanni_cartreader
This commit is contained in:
commit
19e0837128
@ -4,7 +4,7 @@
|
|||||||
This project represents a community-driven effort to provide
|
This project represents a community-driven effort to provide
|
||||||
an easy to build and easy to modify cartridge dumper.
|
an easy to build and easy to modify cartridge dumper.
|
||||||
|
|
||||||
Date: 27.09.2022
|
Date: 28.09.2022
|
||||||
Version: 10.0
|
Version: 10.0
|
||||||
|
|
||||||
SD lib: https://github.com/greiman/SdFat
|
SD lib: https://github.com/greiman/SdFat
|
||||||
|
@ -428,7 +428,7 @@ uint32_t uppow2(uint32_t n) {
|
|||||||
|
|
||||||
boolean getMapping() {
|
boolean getMapping() {
|
||||||
display_Clear();
|
display_Clear();
|
||||||
println_Msg(F("Searching database..."));
|
println_Msg(F("Searching database"));
|
||||||
display_Update();
|
display_Update();
|
||||||
|
|
||||||
// Read first 512 bytes of prg rom
|
// Read first 512 bytes of prg rom
|
||||||
@ -446,8 +446,19 @@ boolean getMapping() {
|
|||||||
char iNES_STR[33];
|
char iNES_STR[33];
|
||||||
sprintf(crcStr, "%08lX", ~oldcrc32);
|
sprintf(crcStr, "%08lX", ~oldcrc32);
|
||||||
|
|
||||||
|
print_Msg(F("for "));
|
||||||
|
print_Msg(crcStr);
|
||||||
|
println_Msg(F("..."));
|
||||||
|
display_Update();
|
||||||
|
|
||||||
// Filter out 0xFF checksum
|
// Filter out 0xFF checksum
|
||||||
if (strcmp(crcStr, "BD7BC39F") == 0) {
|
if (strcmp(crcStr, "BD7BC39F") == 0) {
|
||||||
|
delay(500);
|
||||||
|
println_Msg(F(""));
|
||||||
|
println_Msg(F("No data found at 0x8000"));
|
||||||
|
println_Msg(F("Using manual selection"));
|
||||||
|
display_Update();
|
||||||
|
delay(1000);
|
||||||
romName[0] = 'C';
|
romName[0] = 'C';
|
||||||
romName[1] = 'A';
|
romName[1] = 'A';
|
||||||
romName[2] = 'R';
|
romName[2] = 'R';
|
||||||
@ -726,7 +737,11 @@ boolean getMapping() {
|
|||||||
}
|
}
|
||||||
// File searched until end but nothing found
|
// File searched until end but nothing found
|
||||||
if (strcmp(crc_search, crcStr) != 0) {
|
if (strcmp(crc_search, crcStr) != 0) {
|
||||||
println_Msg(F("Not found"));
|
println_Msg(F(""));
|
||||||
|
println_Msg(F("CRC not found in database"));
|
||||||
|
println_Msg(F("Using manual selection"));
|
||||||
|
display_Update();
|
||||||
|
delay(1000);
|
||||||
romName[0] = 'C';
|
romName[0] = 'C';
|
||||||
romName[1] = 'A';
|
romName[1] = 'A';
|
||||||
romName[2] = 'R';
|
romName[2] = 'R';
|
||||||
|
Loading…
Reference in New Issue
Block a user