From b5563ba735404483aaf303453579cd272c4aeaf4 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 15 Sep 2026 13:47:59 +0200 Subject: [PATCH] replaced EMSCRIPTEN checks with ISWEB --- commandline.cpp | 4 +--- sysconfig.h | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/commandline.cpp b/commandline.cpp index d77ad950..5dd0446c 100644 --- a/commandline.cpp +++ b/commandline.cpp @@ -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")) diff --git a/sysconfig.h b/sysconfig.h index e0c0feaf..0a4fe212 100644 --- a/sysconfig.h +++ b/sysconfig.h @@ -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