mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-07-03 18:22:49 +00:00
fixes to emscripten CLI
This commit is contained in:
parent
4b0cbeebcd
commit
15dcbc188a
@ -153,7 +153,7 @@ transmatrix getOrientation() {
|
|||||||
vector<string> emscripten_args;
|
vector<string> emscripten_args;
|
||||||
vector<const char*> emscripten_args_c;
|
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({
|
char *str = (char*)EM_ASM_INT({
|
||||||
var jsString = document.location.href;
|
var jsString = document.location.href;
|
||||||
alert(jsString);
|
alert(jsString);
|
||||||
@ -170,7 +170,7 @@ void emscripten_get_commandline(int argc, char ** argv) {
|
|||||||
string next = ""; i += 3;
|
string next = ""; i += 3;
|
||||||
for(; i<size(s); i++) {
|
for(; i<size(s); i++) {
|
||||||
if(s[i] == '+') {
|
if(s[i] == '+') {
|
||||||
emscripten.push_back(next);
|
emscripten_args.push_back(next);
|
||||||
next = "";
|
next = "";
|
||||||
}
|
}
|
||||||
else if(s[i] == '%') {
|
else if(s[i] == '%') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user