From fa4f0ece38139c777e47b26ec695af094ee8f566 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Wed, 31 Jul 2024 04:24:28 -0500 Subject: [PATCH] NON-WORKING....... --- src/gui/gui.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 2e9284967..53c23acc4 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -5160,6 +5160,27 @@ bool FurnaceGUI::loop() { } break; case GUI_FILE_INS_SAVE_ALL: + for (int i=0; isong.insLen; i++) { + String nextPath=copyOfName; + nextPath+=DIR_SEPARATOR_STR; + nextPath+=fmt::sprintf("%.2X_",i); + for (char i: e->song.ins[i]->name) { + switch (i) { + // there chars are reserved + case '/': case '<': case '>': case ':': case '"': case '\\': case '|': case '?': case '*': + nextPath+='_'; + break; + default: + nextPath+=i; + break; + } + } + nextPath+=".fui"; + if (!e->song.ins[i]->save(nextPath.c_str(),&e->song,settings.writeInsNames)) { + + } + } + break; case GUI_FILE_WAVE_SAVE_ALL: case GUI_FILE_SAMPLE_SAVE_ALL: showError("Placeholder.");