mirror of
https://github.com/sanni/cartreader.git
synced 2024-11-15 01:15:06 +01:00
define common string "Select file"
This commit is contained in:
parent
da8dc3d94e
commit
4040d2b2a6
@ -148,7 +148,7 @@ void flashromMenu8() {
|
|||||||
case 3:
|
case 3:
|
||||||
filePath[0] = '\0';
|
filePath[0] = '\0';
|
||||||
sd.chdir("/");
|
sd.chdir("/");
|
||||||
fileBrowser(F("Select file"));
|
fileBrowser(FS(FSTRING_SELECT_FILE));
|
||||||
display_Clear();
|
display_Clear();
|
||||||
time = millis();
|
time = millis();
|
||||||
|
|
||||||
@ -272,7 +272,7 @@ void flashromMenu16() {
|
|||||||
case 3:
|
case 3:
|
||||||
filePath[0] = '\0';
|
filePath[0] = '\0';
|
||||||
sd.chdir("/");
|
sd.chdir("/");
|
||||||
fileBrowser(F("Select file"));
|
fileBrowser(FS(FSTRING_SELECT_FILE));
|
||||||
display_Clear();
|
display_Clear();
|
||||||
time = millis();
|
time = millis();
|
||||||
if (flashid == 0xC2F3) {
|
if (flashid == 0xC2F3) {
|
||||||
@ -352,7 +352,7 @@ void epromMenu() {
|
|||||||
case 2:
|
case 2:
|
||||||
filePath[0] = '\0';
|
filePath[0] = '\0';
|
||||||
sd.chdir("/");
|
sd.chdir("/");
|
||||||
fileBrowser(F("Select file"));
|
fileBrowser(FS(FSTRING_SELECT_FILE));
|
||||||
display_Clear();
|
display_Clear();
|
||||||
time = millis();
|
time = millis();
|
||||||
write_Eprom();
|
write_Eprom();
|
||||||
@ -2472,7 +2472,7 @@ void identifyCFI_Flash() {
|
|||||||
void writeCFI_Flash() {
|
void writeCFI_Flash() {
|
||||||
filePath[0] = '\0';
|
filePath[0] = '\0';
|
||||||
sd.chdir("/");
|
sd.chdir("/");
|
||||||
fileBrowser(F("Select file"));
|
fileBrowser(FS(FSTRING_SELECT_FILE));
|
||||||
display_Clear();
|
display_Clear();
|
||||||
|
|
||||||
if (openFlashFile()) {
|
if (openFlashFile()) {
|
||||||
|
@ -65,7 +65,7 @@ bool gbxFlashCFI() {
|
|||||||
// Launch filebrowser
|
// Launch filebrowser
|
||||||
filePath[0] = '\0';
|
filePath[0] = '\0';
|
||||||
sd.chdir("/");
|
sd.chdir("/");
|
||||||
fileBrowser(F("Select file"));
|
fileBrowser(FS(FSTRING_SELECT_FILE));
|
||||||
display_Clear();
|
display_Clear();
|
||||||
identifyCFI_GB();
|
identifyCFI_GB();
|
||||||
if (!writeCFI_GB()) {
|
if (!writeCFI_GB()) {
|
||||||
@ -1810,7 +1810,7 @@ void writeFlash29F_GB(byte MBC, boolean flashErase) {
|
|||||||
// Launch filebrowser
|
// Launch filebrowser
|
||||||
filePath[0] = '\0';
|
filePath[0] = '\0';
|
||||||
sd.chdir("/");
|
sd.chdir("/");
|
||||||
fileBrowser(F("Select file"));
|
fileBrowser(FS(FSTRING_SELECT_FILE));
|
||||||
display_Clear();
|
display_Clear();
|
||||||
|
|
||||||
// Create filepath
|
// Create filepath
|
||||||
@ -2565,7 +2565,7 @@ void writePelican_GB() {
|
|||||||
// Launch filebrowser
|
// Launch filebrowser
|
||||||
filePath[0] = '\0';
|
filePath[0] = '\0';
|
||||||
sd.chdir("/");
|
sd.chdir("/");
|
||||||
fileBrowser(F("Select file"));
|
fileBrowser(FS(FSTRING_SELECT_FILE));
|
||||||
display_Clear();
|
display_Clear();
|
||||||
|
|
||||||
// Create filepath
|
// Create filepath
|
||||||
@ -2932,7 +2932,7 @@ void writeMegaMem_GB() {
|
|||||||
// Write Datel Mega Memory Card Save Storage Chip SST28LF040
|
// Write Datel Mega Memory Card Save Storage Chip SST28LF040
|
||||||
filePath[0] = '\0';
|
filePath[0] = '\0';
|
||||||
sd.chdir("/");
|
sd.chdir("/");
|
||||||
fileBrowser(F("Select file"));
|
fileBrowser(FS(FSTRING_SELECT_FILE));
|
||||||
display_Clear();
|
display_Clear();
|
||||||
|
|
||||||
// Create filepath
|
// Create filepath
|
||||||
@ -3270,7 +3270,7 @@ void writeGameshark_GB() {
|
|||||||
// Launch filebrowser
|
// Launch filebrowser
|
||||||
filePath[0] = '\0';
|
filePath[0] = '\0';
|
||||||
sd.chdir("/");
|
sd.chdir("/");
|
||||||
fileBrowser(F("Select file"));
|
fileBrowser(FS(FSTRING_SELECT_FILE));
|
||||||
display_Clear();
|
display_Clear();
|
||||||
|
|
||||||
byte byte1;
|
byte byte1;
|
||||||
|
@ -255,7 +255,7 @@ void mdMenu() {
|
|||||||
// Change working dir to root
|
// Change working dir to root
|
||||||
filePath[0] = '\0';
|
filePath[0] = '\0';
|
||||||
sd.chdir("/");
|
sd.chdir("/");
|
||||||
fileBrowser(F("Select file"));
|
fileBrowser(FS(FSTRING_SELECT_FILE));
|
||||||
display_Clear();
|
display_Clear();
|
||||||
// Setting CS(PH3) LOW
|
// Setting CS(PH3) LOW
|
||||||
PORTH &= ~(1 << 3);
|
PORTH &= ~(1 << 3);
|
||||||
|
@ -70,6 +70,7 @@ constexpr char PROGMEM FSTRING_READ_SAVE[] = "Read Save";
|
|||||||
constexpr char PROGMEM FSTRING_WRITE_SAVE[] = "Write Save";
|
constexpr char PROGMEM FSTRING_WRITE_SAVE[] = "Write Save";
|
||||||
constexpr char PROGMEM FSTRING_SELECT_CART[] = "Select Cart";
|
constexpr char PROGMEM FSTRING_SELECT_CART[] = "Select Cart";
|
||||||
constexpr char PROGMEM FSTRING_SELECT_CART_TYPE[] = "Select Cart Type";
|
constexpr char PROGMEM FSTRING_SELECT_CART_TYPE[] = "Select Cart Type";
|
||||||
|
constexpr char PROGMEM FSTRING_SELECT_FILE[] = "Select file";
|
||||||
constexpr char PROGMEM FSTRING_SET_SIZE[] = "Set Size";
|
constexpr char PROGMEM FSTRING_SET_SIZE[] = "Set Size";
|
||||||
constexpr char PROGMEM FSTRING_REFRESH_CART[] = "Refresh Cart";
|
constexpr char PROGMEM FSTRING_REFRESH_CART[] = "Refresh Cart";
|
||||||
constexpr char PROGMEM FSTRING_MAPPER[] = "Mapper: ";
|
constexpr char PROGMEM FSTRING_MAPPER[] = "Mapper: ";
|
||||||
|
@ -94,6 +94,7 @@ extern const char PROGMEM FSTRING_READ_SAVE[];
|
|||||||
extern const char PROGMEM FSTRING_WRITE_SAVE[];
|
extern const char PROGMEM FSTRING_WRITE_SAVE[];
|
||||||
extern const char PROGMEM FSTRING_SELECT_CART[];
|
extern const char PROGMEM FSTRING_SELECT_CART[];
|
||||||
extern const char PROGMEM FSTRING_SELECT_CART_TYPE[];
|
extern const char PROGMEM FSTRING_SELECT_CART_TYPE[];
|
||||||
|
extern const char PROGMEM FSTRING_SELECT_FILE[];
|
||||||
extern const char PROGMEM FSTRING_SET_SIZE[];
|
extern const char PROGMEM FSTRING_SET_SIZE[];
|
||||||
extern const char PROGMEM FSTRING_REFRESH_CART[];
|
extern const char PROGMEM FSTRING_REFRESH_CART[];
|
||||||
extern const char PROGMEM FSTRING_MAPPER[];
|
extern const char PROGMEM FSTRING_MAPPER[];
|
||||||
|
@ -680,7 +680,7 @@ void writeSRAM_SMS() {
|
|||||||
if (false) {
|
if (false) {
|
||||||
print_Error(F("DISABLED"));
|
print_Error(F("DISABLED"));
|
||||||
} else {
|
} else {
|
||||||
fileBrowser(F("Select file"));
|
fileBrowser(FS(FSTRING_SELECT_FILE));
|
||||||
|
|
||||||
sd.chdir();
|
sd.chdir();
|
||||||
sprintf(filePath, "%s/%s", filePath, fileName);
|
sprintf(filePath, "%s/%s", filePath, fileName);
|
||||||
|
@ -193,7 +193,7 @@ static void readSRAM_Acan() {
|
|||||||
static void writeSRAM_Acan() {
|
static void writeSRAM_Acan() {
|
||||||
filePath[0] = 0;
|
filePath[0] = 0;
|
||||||
sd.chdir();
|
sd.chdir();
|
||||||
fileBrowser(F("Select a file"));
|
fileBrowser(FS(FSTRING_SELECT_FILE));
|
||||||
snprintf(filePath, FILEPATH_LENGTH, "%s/%s", filePath, fileName);
|
snprintf(filePath, FILEPATH_LENGTH, "%s/%s", filePath, fileName);
|
||||||
|
|
||||||
display_Clear();
|
display_Clear();
|
||||||
@ -309,7 +309,7 @@ static void verifyUM6650() {
|
|||||||
static void writeUM6650() {
|
static void writeUM6650() {
|
||||||
filePath[0] = 0;
|
filePath[0] = 0;
|
||||||
sd.chdir("/");
|
sd.chdir("/");
|
||||||
fileBrowser(F("Select a file"));
|
fileBrowser(FS(FSTRING_SELECT_FILE));
|
||||||
snprintf(filePath, FILEPATH_LENGTH, "%s/%s", filePath, fileName);
|
snprintf(filePath, FILEPATH_LENGTH, "%s/%s", filePath, fileName);
|
||||||
|
|
||||||
display_Clear();
|
display_Clear();
|
||||||
@ -344,7 +344,7 @@ static void flashCart_Acan() {
|
|||||||
|
|
||||||
filePath[0] = 0;
|
filePath[0] = 0;
|
||||||
sd.chdir();
|
sd.chdir();
|
||||||
fileBrowser(F("Select a file"));
|
fileBrowser(FS(FSTRING_SELECT_FILE));
|
||||||
snprintf(filePath, FILEPATH_LENGTH, "%s/%s", filePath, fileName);
|
snprintf(filePath, FILEPATH_LENGTH, "%s/%s", filePath, fileName);
|
||||||
|
|
||||||
display_Clear();
|
display_Clear();
|
||||||
|
Loading…
Reference in New Issue
Block a user