diff options
author | smesgr9000 <smesgr9000> | 2024-05-12 15:37:11 +0200 |
---|---|---|
committer | smesgr9000 <smesgr9000> | 2024-05-12 15:37:11 +0200 |
commit | 9f0aa09197ef0f3f271787109a2c47a445d12f20 (patch) | |
tree | 7ae7ee98f9e5f7978b9ea7f18208e2c66e05ceb1 /Cart_Reader/POKEMINI.ino | |
parent | 38b2b2476b9a5eb30ad3cc68c1b7ab4218a8b6b6 (diff) | |
download | cartreader-9f0aa09197ef0f3f271787109a2c47a445d12f20.tar.gz cartreader-9f0aa09197ef0f3f271787109a2c47a445d12f20.zip |
remove duplicate code to create folder
Diffstat (limited to 'Cart_Reader/POKEMINI.ino')
-rw-r--r-- | Cart_Reader/POKEMINI.ino | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/Cart_Reader/POKEMINI.ino b/Cart_Reader/POKEMINI.ino index 2f95943..bf301c5 100644 --- a/Cart_Reader/POKEMINI.ino +++ b/Cart_Reader/POKEMINI.ino @@ -239,14 +239,7 @@ void writeData_POKE(uint32_t addr, uint8_t data) { //****************************************** void readROM_POKE() { - strcpy(fileName, romName); - strcat(fileName, ".min"); - - // create a new folder for storing rom file - EEPROM_readAnything(0, foldern); - sprintf(folder, "POKE/ROM/%d", foldern); - sd.mkdir(folder, true); - sd.chdir(folder); + createFolder("POKE", "ROM", romName, "min"); display_Clear(); print_STR(saving_to_STR, 0); |