diff --git a/src/game/g_options.pas b/src/game/g_options.pas
index c29bb4da0a1c1bb8032142f5c9ee42f77954770f..b09e750ab197fa68f9aa7c316638e2dc255ed643 100644 (file)
--- a/src/game/g_options.pas
+++ b/src/game/g_options.pas
gsItemRespawnTime: Word = 60;
gsWarmupTime: Word = 30;
+{$IFDEF HEADLESS}
+ e_NoGraphics: Boolean = True;
+{$ELSE}
+ e_NoGraphics: Boolean = False;
+{$ENDIF}
+ e_FastScreenshots: Boolean = true; // it's REALLY SLOW with `false`
+ g_dbg_scale: Single = 1.0;
+ r_pixel_scale: Single = 1.0;
+
implementation
uses
- {$INCLUDE ../nogl/noGLuses.inc}
{$IFDEF USE_SDL2}
SDL2,
{$ENDIF}
e_log, e_input, g_console, g_window, g_sound, g_gfx, g_player, Math,
g_map, g_net, g_netmaster, SysUtils, CONFIG, g_game, g_main, e_texture,
- g_items, wadreader, e_graphics, g_touch, envvars, g_system;
+ g_items, wadreader, g_touch, envvars, g_system;
var
machine: Integer;
conRegVar('r_texfilter', @gTextureFilter, '', '');
conRegVar('r_npot', @glNPOTOverride, '', '');
conRegVar('r_interp', @gLerpActors, '', 'interpolate actors');
+ conRegVar('r_scale', @g_dbg_scale, 0.01, 100.0, 'render scale', '', false);
+ conRegVar('r_resolution_scale', @r_pixel_scale, 0.01, 100.0, 'upscale factor', '', false);
(* Sound *)
conRegVar('s_nosound', @gNoSound, '', '');