replaced EMSCRIPTEN checks with ISWEB

This commit is contained in:
Zeno Rogue
2026-09-17 09:36:43 +02:00
parent 0bfe518cd0
commit b5563ba735
2 changed files with 2 additions and 4 deletions
+1 -3
View File
@@ -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
View File
@@ -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