fix compiler warnings

This commit is contained in:
smesgr9000 2024-05-03 17:11:55 +02:00
parent 330e615b8c
commit 6c05709871
3 changed files with 2 additions and 9 deletions

View File

@ -270,7 +270,6 @@ boolean checkE7(int bank) {
} }
void readROM_2600() { void readROM_2600() {
byte e7size;
strcpy(fileName, romName); strcpy(fileName, romName);
strcat(fileName, ".a26"); strcat(fileName, ".a26");
@ -383,7 +382,6 @@ void readROM_2600() {
readData_2600(0x1FE0 + x); readData_2600(0x1FE0 + x);
readSegment_2600(0x1000, 0x1800); readSegment_2600(0x1000, 0x1800);
} }
e7size = 0;
} }
// Check Bank 3 - If 0xFFs then BurgerTime // Check Bank 3 - If 0xFFs then BurgerTime
else if (checkE7(3)) { // BurgerTime 12K else if (checkE7(3)) { // BurgerTime 12K
@ -396,7 +394,6 @@ void readROM_2600() {
readData_2600(0x1FE0 + x); readData_2600(0x1FE0 + x);
readSegment_2600(0x1000, 0x1800); readSegment_2600(0x1000, 0x1800);
} }
e7size = 1;
} }
else { // Masters of the Universe (or Unknown Cart) 16K else { // Masters of the Universe (or Unknown Cart) 16K
writeData_2600(0x1800, 0xFF); writeData_2600(0x1800, 0xFF);
@ -404,7 +401,6 @@ void readROM_2600() {
readData_2600(0x1FE0 + x); readData_2600(0x1FE0 + x);
readSegment_2600(0x1000, 0x1800); readSegment_2600(0x1000, 0x1800);
} }
e7size = 2;
} }
readSegment_2600(0x1800, 0x2000); // Bank 7 readSegment_2600(0x1800, 0x2000); // Bank 7
break; break;
@ -653,7 +649,7 @@ void checkStatus_2600() {
//****************************************** //******************************************
#if (defined(ENABLE_OLED) || defined(ENABLE_LCD)) #if (defined(ENABLE_OLED) || defined(ENABLE_LCD))
void printMapperSelection_2600(uint8_t index) { void printMapperSelection_2600(int index) {
display_Clear(); display_Clear();
print_Msg(F("Mapper: ")); print_Msg(F("Mapper: "));
a2600index = index * 2; a2600index = index * 2;
@ -726,7 +722,6 @@ void setCart_2600() {
sd.chdir(); sd.chdir();
byte gameMapper; byte gameMapper;
byte gameSize;
// Select starting letter // Select starting letter
byte myLetter = starting_letter(); byte myLetter = starting_letter();

View File

@ -515,8 +515,6 @@ void setROMSize_7800() {
if (a7800lo == a7800hi) if (a7800lo == a7800hi)
new7800size = a7800lo; new7800size = a7800lo;
else { else {
uint8_t b = 0;
display_Clear(); display_Clear();
new7800size = navigateMenu(a7800lo, a7800hi, &printRomSize_7800); new7800size = navigateMenu(a7800lo, a7800hi, &printRomSize_7800);

View File

@ -685,7 +685,7 @@ void seek_first_letter_in_database(FsFile& database, byte myLetter) {
// printDataLine - optional callback for printing device specific data informations about the currently browsed game // printDataLine - optional callback for printing device specific data informations about the currently browsed game
// setRomName - callback function to set rom name if game is selected // setRomName - callback function to set rom name if game is selected
// returns true if a game was selected, false otherwise // returns true if a game was selected, false otherwise
boolean checkCartSelection(FsFile& database, void (*readData)(FsFile&, void*), void* data, void (*printDataLine)(void*) = NULL, void (setRomName)(const char* input) = NULL) { boolean checkCartSelection(FsFile& database, void (*readData)(FsFile&, void*), void* data, void (*printDataLine)(void*) = NULL, void (*setRomName)(const char* input) = NULL) {
char gamename[128]; char gamename[128];
uint8_t fastScrolling = 1; uint8_t fastScrolling = 1;