From 11d7b6e9e4f390f3a26e474e93383b0c7ce0f511 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Mon, 12 Feb 2018 16:21:19 +0100 Subject: [PATCH] better start menu switching for online --- hyper.cpp | 2 ++ hyperweb.cpp | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/hyper.cpp b/hyper.cpp index a5e44652..91e81209 100644 --- a/hyper.cpp +++ b/hyper.cpp @@ -61,8 +61,10 @@ int main(int argc, const char **argv) { #if CAP_COMMANDLINE arg::read(3); #endif +#if !ISWEB if(showstartmenu) pushScreen(showStartMenu); +#endif mainloop(); finishAll(); profile_info(); diff --git a/hyperweb.cpp b/hyperweb.cpp index 85aeaaf4..af6d9385 100644 --- a/hyperweb.cpp +++ b/hyperweb.cpp @@ -136,7 +136,8 @@ void initweb() { rug::renderonce = true; // toggleanim(false); emscripten_set_fullscreenchange_callback(0, NULL, false, fsc_callback); - pushScreen(showDemo); + printf("showstartmenu = %d\n", showstartmenu); + if(showstartmenu) pushScreen(showDemo); } transmatrix getOrientation() {