would this fix the issue?

This commit is contained in:
tildearrow 2024-07-31 22:53:03 -05:00
parent fa4f0ece38
commit f7553ede78

View file

@ -5164,18 +5164,19 @@ bool FurnaceGUI::loop() {
String nextPath=copyOfName; String nextPath=copyOfName;
nextPath+=DIR_SEPARATOR_STR; nextPath+=DIR_SEPARATOR_STR;
nextPath+=fmt::sprintf("%.2X_",i); nextPath+=fmt::sprintf("%.2X_",i);
for (char i: e->song.ins[i]->name) { for (char j: e->song.ins[i]->name) {
switch (i) { switch (j) {
// there chars are reserved // these chars are reserved
case '/': case '<': case '>': case ':': case '"': case '\\': case '|': case '?': case '*': case '/': case '<': case '>': case ':': case '"': case '\\': case '|': case '?': case '*':
nextPath+='_'; nextPath+='_';
break; break;
default: default:
nextPath+=i; nextPath+=j;
break; break;
} }
} }
nextPath+=".fui"; nextPath+=".fui";
logV("%s",nextPath);
if (!e->song.ins[i]->save(nextPath.c_str(),&e->song,settings.writeInsNames)) { if (!e->song.ins[i]->save(nextPath.c_str(),&e->song,settings.writeInsNames)) {
} }