1
0
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:
Zeno Rogue 2018-09-06 22:34:54 +02:00
parent 621220cf13
commit b540419096

View File

@ -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");