GUI: fix non-ASCII chars in user system name

This commit is contained in:
tildearrow 2024-07-25 20:14:08 -05:00
parent 4c6a774731
commit d85f98c450

View file

@ -192,7 +192,7 @@ void writeSubEntries(FILE* f, std::vector<FurnaceGUISysDef>& entries, int depth)
String safeName; String safeName;
safeName.reserve(i.name.size()); safeName.reserve(i.name.size());
bool beginning=false; bool beginning=false;
for (char j: i.name) { for (unsigned char j: i.name) {
if (beginning && j==' ') continue; if (beginning && j==' ') continue;
if (j=='=') continue; if (j=='=') continue;
if (j<0x20) continue; if (j<0x20) continue;