1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 14:37:16 +00:00

fixes to emscripten CLI

This commit is contained in:
Zeno Rogue 2018-02-12 12:56:39 +01:00
parent 4b0cbeebcd
commit 15dcbc188a

View File

@ -153,7 +153,7 @@ transmatrix getOrientation() {
vector<string> emscripten_args;
vector<const char*> emscripten_args_c;
void emscripten_get_commandline(int argc, char ** argv) {
void emscripten_get_commandline(int argc, const char ** argv) {
char *str = (char*)EM_ASM_INT({
var jsString = document.location.href;
alert(jsString);
@ -170,7 +170,7 @@ void emscripten_get_commandline(int argc, char ** argv) {
string next = ""; i += 3;
for(; i<size(s); i++) {
if(s[i] == '+') {
emscripten.push_back(next);
emscripten_args.push_back(next);
next = "";
}
else if(s[i] == '%') {