mirror of
https://github.com/sanni/cartreader.git
synced 2024-11-23 21:19:16 +01:00
Small fixes
This commit is contained in:
parent
02a7b42052
commit
c07a9334fd
@ -4,7 +4,7 @@
|
||||
This project represents a community-driven effort to provide
|
||||
an easy to build and easy to modify cartridge dumper.
|
||||
|
||||
Date: 23.07.2022
|
||||
Date: 26.07.2022
|
||||
Version: 9.2 Alpha
|
||||
|
||||
SD lib: https://github.com/greiman/SdFat
|
||||
@ -116,7 +116,7 @@ char ver[5] = "9.2A";
|
||||
#define enable_OLED
|
||||
#define enable_Button2
|
||||
#define clockgen_installed
|
||||
#define fastcrc
|
||||
//#define fastcrc
|
||||
#endif
|
||||
|
||||
#if defined(HW1)
|
||||
@ -127,8 +127,8 @@ char ver[5] = "9.2A";
|
||||
|
||||
#if defined(SERIAL_MONITOR)
|
||||
#define enable_serial
|
||||
#define clockgen_installed
|
||||
#define fastcrc
|
||||
//#define clockgen_installed
|
||||
//#define fastcrc
|
||||
#endif
|
||||
|
||||
//******************************************
|
||||
|
@ -2115,6 +2115,7 @@ void printCartInfo_N64() {
|
||||
|
||||
// Print start page
|
||||
if (cartSize != 0) {
|
||||
display_Clear();
|
||||
println_Msg(F("N64 Cartridge Info"));
|
||||
println_Msg(F(""));
|
||||
print_Msg(F("Name: "));
|
||||
@ -2155,6 +2156,7 @@ void printCartInfo_N64() {
|
||||
}
|
||||
else {
|
||||
// Display error
|
||||
display_Clear();
|
||||
println_Msg(F("GAMEPAK ERROR"));
|
||||
println_Msg("");
|
||||
print_Msg(F("Name: "));
|
||||
@ -2167,6 +2169,9 @@ void printCartInfo_N64() {
|
||||
|
||||
strcpy(romName, "GPERROR");
|
||||
print_Error(F("Cartridge unknown"), false);
|
||||
println_Msg("");
|
||||
println_Msg(F("Press Button..."));
|
||||
display_Update();
|
||||
wait();
|
||||
|
||||
// Set cartsize manually
|
||||
@ -2288,6 +2293,10 @@ void getCartInfo_N64() {
|
||||
// Read cart id
|
||||
idCart();
|
||||
|
||||
display_Clear();
|
||||
println_Msg(F("Searching database..."));
|
||||
display_Update();
|
||||
|
||||
if (myFile.open("n64.txt", O_READ)) {
|
||||
// Loop through file
|
||||
while (myFile.available()) {
|
||||
|
@ -1180,7 +1180,7 @@ unsigned int calc_checksum (char* fileName, char* folder) {
|
||||
}
|
||||
|
||||
boolean compare_checksum() {
|
||||
print_Msg(F("Internal Checksum..."));
|
||||
print_Msg(F("Chksum..."));
|
||||
display_Update();
|
||||
|
||||
strcpy(fileName, romName);
|
||||
@ -1200,9 +1200,9 @@ boolean compare_checksum() {
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
print_Msg(F("Checksum Error: "));
|
||||
println_Msg(calcsumStr);
|
||||
print_Error(F(""), false);
|
||||
print_Msg(F("Error "));
|
||||
print_Msg(calcsumStr);
|
||||
print_Error(F(" "), false);
|
||||
display_Update();
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user