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