mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-10-17 22:52:29 +00:00
replaced EMSCRIPTEN checks with ISWEB
This commit is contained in:
+1
-3
@@ -264,10 +264,8 @@ int arg::readCommon() {
|
||||
else if(argis("-no-s")) { PHASE(2); scorefile = ""; savefile_selection = false; }
|
||||
else if(argis("-rsrc")) { PHASE(1); shift(); rsrcdir = args(); }
|
||||
else if(argis("-nogui")) { PHASE(1); noGUI = true; }
|
||||
#ifndef EMSCRIPTEN
|
||||
#if CAP_SDLTTF
|
||||
#if CAP_SDLTTF && !ISWEB
|
||||
else if(argis("-font")) { PHASE(1); shift(); font_id = isize(font_filenames); font_filenames.push_back(args()); font_names.push_back({args(), "commandline"}); }
|
||||
#endif
|
||||
#endif
|
||||
|
||||
else if(argis("-test-ach"))
|
||||
|
||||
+1
-1
@@ -705,7 +705,7 @@ union SDL_Event;
|
||||
#endif
|
||||
|
||||
#ifndef MINIMIZE_GL_CALLS
|
||||
#ifdef EMSCRIPTEN
|
||||
#if ISWEB
|
||||
#define MINIMIZE_GL_CALLS 1
|
||||
#else
|
||||
#define MINIMIZE_GL_CALLS 0
|
||||
|
||||
Reference in New Issue
Block a user