1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-09-28 14:08:40 +00:00

add more escaping to -D option,

to allow e.g. specifying HYPERPATH
This commit is contained in:
rpljwi 2020-05-19 11:40:18 +03:00
parent 1ac8aa2bc6
commit e05a2f9b87

View File

@ -94,7 +94,7 @@ int main(int argc, char **argv) {
obj_dir += "/"; obj_dir += "/";
setdir += "../"; setdir += "../";
for(char c: s) for(char c: s)
if(c == '=' || c == '-' || c == '/') obj_dir += "_"; if(c == '=' || c == '-' || c == '/' || c == '"' || c == '\\') obj_dir += "_";
else obj_dir += c; else obj_dir += c;
} }
else if(s == "-win") { else if(s == "-win") {