1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-25 22:53:19 +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 += "/";
setdir += "../";
for(char c: s)
if(c == '=' || c == '-' || c == '/') obj_dir += "_";
if(c == '=' || c == '-' || c == '/' || c == '"' || c == '\\') obj_dir += "_";
else obj_dir += c;
}
else if(s == "-win") {