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