mirror of
https://github.com/sanni/cartreader.git
synced 2024-11-15 01:15:06 +01:00
reuse common string "ROM Size: "
This commit is contained in:
parent
acc069e103
commit
9e13964889
@ -332,7 +332,7 @@ void checkMapperSize_5200() {
|
|||||||
#if (defined(ENABLE_OLED) || defined(ENABLE_LCD))
|
#if (defined(ENABLE_OLED) || defined(ENABLE_LCD))
|
||||||
void printRomSize_5200(int index) {
|
void printRomSize_5200(int index) {
|
||||||
display_Clear();
|
display_Clear();
|
||||||
print_Msg(F("ROM Size: "));
|
print_Msg(FS(FSTRING_ROM_SIZE));
|
||||||
println_Msg(a5200[index]);
|
println_Msg(a5200[index]);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -478,7 +478,7 @@ void println_Mapper7800(byte mapper) {
|
|||||||
|
|
||||||
void printRomSize_7800(int index) {
|
void printRomSize_7800(int index) {
|
||||||
display_Clear();
|
display_Clear();
|
||||||
print_Msg(F("ROM Size: "));
|
print_Msg(FS(FSTRING_ROM_SIZE));
|
||||||
println_Msg(a7800[index]);
|
println_Msg(a7800[index]);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -179,7 +179,7 @@ void readROM_ARC() {
|
|||||||
#if (defined(ENABLE_OLED) || defined(ENABLE_LCD))
|
#if (defined(ENABLE_OLED) || defined(ENABLE_LCD))
|
||||||
void printRomSize_ARC(int index) {
|
void printRomSize_ARC(int index) {
|
||||||
display_Clear();
|
display_Clear();
|
||||||
print_Msg(F("ROM Size: "));
|
print_Msg(FS(FSTRING_ROM_SIZE));
|
||||||
println_Msg(ARC[index]);
|
println_Msg(ARC[index]);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -629,7 +629,7 @@ void checkMapperSize_C64() {
|
|||||||
#if (defined(ENABLE_OLED) || defined(ENABLE_LCD))
|
#if (defined(ENABLE_OLED) || defined(ENABLE_LCD))
|
||||||
void printRomSize_C64(int index) {
|
void printRomSize_C64(int index) {
|
||||||
display_Clear();
|
display_Clear();
|
||||||
print_Msg(F("ROM Size: "));
|
print_Msg(FS(FSTRING_ROM_SIZE));
|
||||||
println_Msg(C64[index]);
|
println_Msg(C64[index]);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -204,7 +204,7 @@ void readROM_COL() {
|
|||||||
#if (defined(ENABLE_OLED) || defined(ENABLE_LCD))
|
#if (defined(ENABLE_OLED) || defined(ENABLE_LCD))
|
||||||
void printRomSize_COL(int index) {
|
void printRomSize_COL(int index) {
|
||||||
display_Clear();
|
display_Clear();
|
||||||
print_Msg(F("ROM Size: "));
|
print_Msg(FS(FSTRING_ROM_SIZE));
|
||||||
println_Msg(pgm_read_byte(&(COL[index])));
|
println_Msg(pgm_read_byte(&(COL[index])));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -496,7 +496,7 @@ void read16K_FAIRCHILD() { // Read 16K Bytes
|
|||||||
#if (defined(ENABLE_OLED) || defined(ENABLE_LCD))
|
#if (defined(ENABLE_OLED) || defined(ENABLE_LCD))
|
||||||
void printRomSize_FAIRCHILD(int index) {
|
void printRomSize_FAIRCHILD(int index) {
|
||||||
display_Clear();
|
display_Clear();
|
||||||
print_Msg(F("ROM Size: "));
|
print_Msg(FS(FSTRING_ROM_SIZE));
|
||||||
println_Msg(FAIRCHILD[index]);
|
println_Msg(FAIRCHILD[index]);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -597,7 +597,7 @@ void showCartInfo_GB() {
|
|||||||
print_Msg(F("M161"));
|
print_Msg(F("M161"));
|
||||||
|
|
||||||
println_Msg(FS(FSTRING_EMPTY));
|
println_Msg(FS(FSTRING_EMPTY));
|
||||||
print_Msg(F("ROM Size: "));
|
print_Msg(FS(FSTRING_ROM_SIZE));
|
||||||
switch (romSize) {
|
switch (romSize) {
|
||||||
case 0:
|
case 0:
|
||||||
print_Msg(F("32 KB"));
|
print_Msg(F("32 KB"));
|
||||||
@ -2486,7 +2486,8 @@ void readPelican_GB() {
|
|||||||
if (flashid == 0xDA45 || flashid == 0xBF10) {
|
if (flashid == 0xDA45 || flashid == 0xBF10) {
|
||||||
println_Msg(F("29EE020 / W29C020"));
|
println_Msg(F("29EE020 / W29C020"));
|
||||||
println_Msg(F("Banks Used: 32/64"));
|
println_Msg(F("Banks Used: 32/64"));
|
||||||
println_Msg(F("Rom Size: 256 KB"));
|
print_Msg(FS(FSTRING_ROM_SIZE));
|
||||||
|
println_Msg(F("256 KB"));
|
||||||
romBanks = 32;
|
romBanks = 32;
|
||||||
display_Update();
|
display_Update();
|
||||||
} else {
|
} else {
|
||||||
@ -2514,7 +2515,8 @@ void readPelican_GB() {
|
|||||||
if (flashid == 0xBF04) {
|
if (flashid == 0xBF04) {
|
||||||
println_Msg(F("SST 28LF040"));
|
println_Msg(F("SST 28LF040"));
|
||||||
println_Msg(F("Banks Used: 64/64"));
|
println_Msg(F("Banks Used: 64/64"));
|
||||||
println_Msg(F("Rom Size: 512 KB"));
|
print_Msg(FS(FSTRING_ROM_SIZE));
|
||||||
|
println_Msg(F("512 KB"));
|
||||||
romBanks = 64;
|
romBanks = 64;
|
||||||
display_Update();
|
display_Update();
|
||||||
}
|
}
|
||||||
@ -3185,7 +3187,8 @@ void readGameshark_GB() {
|
|||||||
if (flashid == 0xBFB5) {
|
if (flashid == 0xBFB5) {
|
||||||
display_Clear();
|
display_Clear();
|
||||||
println_Msg(F("SST 39SF010"));
|
println_Msg(F("SST 39SF010"));
|
||||||
println_Msg(F("Rom Size: 128 KB"));
|
print_Msg(FS(FSTRING_ROM_SIZE));
|
||||||
|
println_Msg(F("128 KB"));
|
||||||
display_Update();
|
display_Update();
|
||||||
} else {
|
} else {
|
||||||
display_Clear();
|
display_Clear();
|
||||||
|
@ -258,7 +258,7 @@ void setup_GBA() {
|
|||||||
println_Msg(cartID);
|
println_Msg(cartID);
|
||||||
print_Msg(F("Revision: "));
|
print_Msg(F("Revision: "));
|
||||||
println_Msg(romVersion);
|
println_Msg(romVersion);
|
||||||
print_Msg(F("ROM Size: "));
|
print_Msg(FS(FSTRING_ROM_SIZE));
|
||||||
if (cartSize == 0)
|
if (cartSize == 0)
|
||||||
println_Msg(F("Unknown"));
|
println_Msg(F("Unknown"));
|
||||||
else {
|
else {
|
||||||
@ -683,7 +683,7 @@ void getCartInfo_GBA() {
|
|||||||
println_Msg(gamename);
|
println_Msg(gamename);
|
||||||
print_Msg(F("Serial: "));
|
print_Msg(F("Serial: "));
|
||||||
println_Msg(tempStr);
|
println_Msg(tempStr);
|
||||||
print_Msg(F("ROM Size: "));
|
print_Msg(FS(FSTRING_ROM_SIZE));
|
||||||
print_Msg(cartSize);
|
print_Msg(cartSize);
|
||||||
println_Msg(F(" MB"));
|
println_Msg(F(" MB"));
|
||||||
print_Msg(F("Save Lib: "));
|
print_Msg(F("Save Lib: "));
|
||||||
|
@ -524,7 +524,7 @@ void checkMapperSize_INTV() {
|
|||||||
#if (defined(ENABLE_OLED) || defined(ENABLE_LCD))
|
#if (defined(ENABLE_OLED) || defined(ENABLE_LCD))
|
||||||
void printRomSize_INTV(int index) {
|
void printRomSize_INTV(int index) {
|
||||||
display_Clear();
|
display_Clear();
|
||||||
print_Msg(F("ROM Size: "));
|
print_Msg(FS(FSTRING_ROM_SIZE));
|
||||||
println_Msg(pgm_read_byte(&(INTV[index])));
|
println_Msg(pgm_read_byte(&(INTV[index])));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -2888,7 +2888,7 @@ void readRealtec_MD() {
|
|||||||
|
|
||||||
void printRomSize_MD(int index) {
|
void printRomSize_MD(int index) {
|
||||||
display_Clear();
|
display_Clear();
|
||||||
print_Msg(F("ROM Size: "));
|
print_Msg(FS(FSTRING_ROM_SIZE));
|
||||||
print_Msg(pgm_read_byte(&(MDSize[index])));
|
print_Msg(pgm_read_byte(&(MDSize[index])));
|
||||||
println_Msg(F(" Mbit"));
|
println_Msg(F(" Mbit"));
|
||||||
}
|
}
|
||||||
|
@ -889,7 +889,7 @@ void checkMapperSize_MSX() {
|
|||||||
#if (defined(ENABLE_OLED) || defined(ENABLE_LCD))
|
#if (defined(ENABLE_OLED) || defined(ENABLE_LCD))
|
||||||
void printRomSize_MSX(uint8_t index) {
|
void printRomSize_MSX(uint8_t index) {
|
||||||
display_Clear();
|
display_Clear();
|
||||||
print_Msg(F("ROM Size: "));
|
print_Msg(FS(FSTRING_ROM_SIZE));
|
||||||
println_Msg(MSX[index]);
|
println_Msg(MSX[index]);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -1929,7 +1929,7 @@ void printCartInfo_N64() {
|
|||||||
println_Msg(cartID);
|
println_Msg(cartID);
|
||||||
print_Msg(F("Revision: "));
|
print_Msg(F("Revision: "));
|
||||||
println_Msg(romVersion);
|
println_Msg(romVersion);
|
||||||
print_Msg(F("ROM Size: "));
|
print_Msg(FS(FSTRING_ROM_SIZE));
|
||||||
print_Msg(cartSize);
|
print_Msg(cartSize);
|
||||||
println_Msg(F(" MB"));
|
println_Msg(F(" MB"));
|
||||||
print_Msg(F("Save Type: "));
|
print_Msg(F("Save Type: "));
|
||||||
|
@ -188,7 +188,7 @@ void printCartInfo_NGP() {
|
|||||||
else
|
else
|
||||||
println_Msg(F("Unknown"));
|
println_Msg(F("Unknown"));
|
||||||
|
|
||||||
print_Msg(F("ROM Size: "));
|
print_Msg(FS(FSTRING_ROM_SIZE));
|
||||||
if (cartSize == 0) {
|
if (cartSize == 0) {
|
||||||
println_Msg(F("Unknown"));
|
println_Msg(F("Unknown"));
|
||||||
} else {
|
} else {
|
||||||
|
@ -257,7 +257,7 @@ void readROM_ODY2() {
|
|||||||
#if (defined(ENABLE_OLED) || defined(ENABLE_LCD))
|
#if (defined(ENABLE_OLED) || defined(ENABLE_LCD))
|
||||||
void printRomSize_ODY2(int index) {
|
void printRomSize_ODY2(int index) {
|
||||||
display_Clear();
|
display_Clear();
|
||||||
print_Msg(F("ROM Size: "));
|
print_Msg(FS(FSTRING_ROM_SIZE));
|
||||||
println_Msg(ODY2[index]);
|
println_Msg(ODY2[index]);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -77,7 +77,7 @@ constexpr char PROGMEM FSTRING_MAPPER[] = "Mapper: ";
|
|||||||
constexpr char PROGMEM FSTRING_SIZE[] = "Size: ";
|
constexpr char PROGMEM FSTRING_SIZE[] = "Size: ";
|
||||||
constexpr char PROGMEM FSTRING_NAME[] = "Name: ";
|
constexpr char PROGMEM FSTRING_NAME[] = "Name: ";
|
||||||
constexpr char PROGMEM FSTRING_CHECKSUM[] = "Checksum: ";
|
constexpr char PROGMEM FSTRING_CHECKSUM[] = "Checksum: ";
|
||||||
constexpr char PROGMEM FSTRING_ROM_SIZE[] ="ROM SIZE: ";
|
constexpr char PROGMEM FSTRING_ROM_SIZE[] ="ROM Size: ";
|
||||||
|
|
||||||
/*==== /CONSTANTS =================================================*/
|
/*==== /CONSTANTS =================================================*/
|
||||||
|
|
||||||
|
@ -416,7 +416,7 @@ static void checkRomExist_Acan() {
|
|||||||
if (cartSize == 0)
|
if (cartSize == 0)
|
||||||
print_Error(F("Unable to find rom signature..."));
|
print_Error(F("Unable to find rom signature..."));
|
||||||
else {
|
else {
|
||||||
print_Msg(F("ROM Size: "));
|
print_Msg(FS(FSTRING_ROM_SIZE));
|
||||||
print_Msg(romSize);
|
print_Msg(romSize);
|
||||||
println_Msg(F(" Mb"));
|
println_Msg(F(" Mb"));
|
||||||
}
|
}
|
||||||
|
@ -238,7 +238,7 @@ void readROM_VECTREX() {
|
|||||||
#if (defined(ENABLE_OLED) || defined(ENABLE_LCD))
|
#if (defined(ENABLE_OLED) || defined(ENABLE_LCD))
|
||||||
void printRomSize_VECTREX(int index) {
|
void printRomSize_VECTREX(int index) {
|
||||||
display_Clear();
|
display_Clear();
|
||||||
print_Msg(F("ROM Size: "));
|
print_Msg(FS(FSTRING_ROM_SIZE));
|
||||||
println_Msg(VECTREX[index]);
|
println_Msg(VECTREX[index]);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -376,7 +376,7 @@ static void showCartInfo_WS() {
|
|||||||
print_Msg(F("Game: "));
|
print_Msg(F("Game: "));
|
||||||
println_Msg(romName);
|
println_Msg(romName);
|
||||||
|
|
||||||
print_Msg(F("Rom Size: "));
|
print_Msg(FS(FSTRING_ROM_SIZE));
|
||||||
if (cartSize == 0x00)
|
if (cartSize == 0x00)
|
||||||
println_Msg(romSize, HEX);
|
println_Msg(romSize, HEX);
|
||||||
else {
|
else {
|
||||||
|
@ -222,7 +222,7 @@ void readROM_WSV() {
|
|||||||
#if (defined(ENABLE_OLED) || defined(ENABLE_LCD))
|
#if (defined(ENABLE_OLED) || defined(ENABLE_LCD))
|
||||||
void printRomSize_WSV(int index) {
|
void printRomSize_WSV(int index) {
|
||||||
display_Clear();
|
display_Clear();
|
||||||
print_Msg(F("ROM Size: "));
|
print_Msg(FS(FSTRING_ROM_SIZE));
|
||||||
println_Msg(pgm_read_word(&(WSV[index])));
|
println_Msg(pgm_read_word(&(WSV[index])));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user