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
1 changed files with 3 additions and 0 deletions

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