mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-03-29 14:57:03 +00:00
hyperweb: now can accept more arguments in the commandline
This commit is contained in:
parent
621220cf13
commit
b540419096
@ -197,6 +197,9 @@ void emscripten_get_commandline() {
|
||||
i += 2;
|
||||
next += strtol(s2.c_str(), NULL, 16);
|
||||
}
|
||||
else if(s[i] == '&') {
|
||||
arg::argument.push_back(next); break;
|
||||
}
|
||||
else next += s[i];
|
||||
}
|
||||
printf("Arguments:"); for(string s: arg::argument) printf(" %s", s.c_str()); printf("\n");
|
||||
|
Loading…
x
Reference in New Issue
Block a user