mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-23 14:30:08 +00:00
add more escaping to -D option,
to allow e.g. specifying HYPERPATH
This commit is contained in:
parent
1ac8aa2bc6
commit
e05a2f9b87
@ -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") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user