# DOSBox Bridge Production Configuration (Headless)
# This config runs DOSBox-X headless for production server deployment
# COM1 connected to bridge server via TCP
#
# HEADLESS MODE NOTES:
# - Windows: windowposition=-2000,-2000 works (window offscreen, serial works)
# - Linux: May be able to use SDL_VIDEODRIVER=dummy (needs testing)
# - The -nogui flag is used on Windows, helps reduce GUI overhead
# - TRUE headless (SDL_VIDEODRIVER=dummy) breaks serial ports on Windows
[sdl]
fullscreen=false
output=surface
windowresolution=640x400
autolock=false
# Position window offscreen (works on Windows, invisible to users)
windowposition=-2000,-2000
# Linux alternative (uncomment for testing on Linux):
# SDL_VIDEODRIVER can be set via environment variable instead of config
[dosbox]
machine=svga_s3
memsize=4
nocachedir=true
[render]
aspect=true
scaler=normal2x
[cpu]
core=auto
cputype=auto
cycles=10000
[serial]
# COM1 connects to bridge server on TCP port
# Bridge listens on port, DOSBox connects to it
# transparent:1 passes through control signals
# rxdelay:0 txdelay:0 removes timing delays for full-speed transfer
# Note: telnet:1 removed - DOSBox SVN may require different carrier detect approach
serial1=nullmodem server:127.0.0.1 port:5000 transparent:1 rxdelay:0 txdelay:0
# Note: DOSBox-X has built-in FOSSIL (serial1_fossil=true)
# Vanilla DOSBox requires loading FOSSIL driver (X00.COM) in autoexec
serial2=dummy
# Note: DOSBox-X has built-in FOSSIL (serial1_fossil=true)
# Vanilla DOSBox/SVN requires loading FOSSIL driver in autoexec
[parallel]
parallel1=disabled
[dos]
xms=true
ems=true
# Emulate MS-DOS 6.22 - no LFN support, correct for BBS door game era.
# Do NOT change to ver=7.x - that enables VFAT long filename support, which
# causes Linux case-sensitive filenames to appear as separate DOS entries.
ver=6.22
# Aggressive directory cache refresh for multi-node support
automountall=false
automount=false
dir_cache_timeout=500
[autoexec]
# Mount directories and launch door game
@echo off
mount c dosbox-bridge/dos
CONFIG -securemode
c:
# Add tools directory to PATH
set PATH=C:\TOOLS;%PATH%
# FOSSIL driver loading is conditional based on door manifest (fossil_required)
# Door-specific commands will be appended here
|