New upstream version 2.0-0.9
Some checks failed
Build / build (push) Has been cancelled

This commit is contained in:
geos_one
2025-08-14 09:28:49 +02:00
parent c338ff82fb
commit 17bb5d7efa
634 changed files with 19105 additions and 52303 deletions

View File

@@ -14,6 +14,8 @@
#
##############################################################################
# Notes for editing this file:
#
# In $_xxx = (n) n is a numerical or boolean value
@@ -23,17 +25,6 @@
# Please note that all options are commented out by default!
# Remove the # in front of the $ to change an option.
# Path to the local directory.
# Note: this option is only valid in global config file.
# Default: "~/.dosemu"
# $_local_dir = "~/.dosemu"
# Name of the local config file under local directory.
# Note: this option is only valid in global config file.
# Default: "dosemurc"
# $_dosemurc = "dosemurc"
##############################################################################
## CPU settings: define the CPU features to DOSEMU.
@@ -68,6 +59,10 @@
# $_cpuemu = (0)
# if possible use Pentium cycle counter for timing. Default: off
# $_rdtsc = (off)
# CPU speed, used in conjunction with the TSC
# Default 0 = calibrated by dosemu, else given (e.g.166.666)
@@ -244,42 +239,27 @@
# $_dosmem = (640)
# Extended Memory size. This memory is accessible via int15h and can be
# used by himem.sys.
# Default: 8192 (8Mb)
# used by himem.sys and the internal XMS driver.
# Default: 8192
# $_ext_mem = (8192)
# $_xms = (8192)
# XMS (internal driver) is only needed if you do not load
# himem.sys or another external XMS driver. Size in Kbytes.
# Default: 16384 (16Mb)
# $_xms = (16384)
# Enable 64K UMB at 0xa0000.
# Enable 64K UMB at 0a0000.
# This is where the VGA graphics memory resides, so enabling this UMB
# will leave you with text mode only.
# Default: auto (enabled only if dosemu runs in text mode)
# $_umb_a0 = (auto)
# Enable 32K UMB at 0xb0000.
# Enable 32K UMB at 0b0000.
# This is where the MDA text memory used to reside, so some programs
# write to that area without hesitation. Therefore it is rather risky
# to enable that UMB: beware even of ansi.sys!
# Default: auto (means: enable only for dumb video mode)
# $_umb_b0 = (auto)
# Enable 32K UMB at 0xb8000.
# This is the text-mode video memory.
# It can be used as UMB only in dumb video mode.
# Use "auto" to get it enabled in that mode.
# And even in that case only few well-behaved programs will work.
# Default: off
# $_umb_b8 = (off)
# $_umb_b0 = (off)
# Enable 16K UMB at 0xf0000.
# Enable 48K UMB at 0f0000.
# This is where normally a read-only BIOS resides but the DOSEMU BIOS does
# not need it. Some (very few) programs rely on this memory being read-only
# (Prehistorik 2); to run such programs, disable this option.
@@ -287,22 +267,6 @@
# $_umb_f0 = (on)
# Enable HMA usage and a20 gating.
# HMA is the ~64K area above 1Mb of RAM.
# Default: on
# $_hma = (on)
# Load DOS kernel to upper memory (UMB or HMA).
# 0 or off means load low, 1 means UMB, 2 means UMB+HMA.
# This gives more free conventional memory but may lead to incompatibilities.
# You can freely disable that option and most of the DOS memory will remain
# in UMB nevertheless (given the proper config.sys).
# Note: only relevant for fdpp.
# Default: 1 (use only UMB, minor incompatibilities)
# $_dos_up = (1)
# EMS (expanded memory) size in Kbytes;
# Warning: disabling EMS (off) is not recommended. Doing so will
# give you the additional 64K of UMB space, but as a side-effect
@@ -329,15 +293,23 @@
# $_ems_conv_pages = (24)
# DPMI memory size in Kbytes
# Default: 0x20000 (128Mb)
# DPMI memory size in Kbytes; default: 0x20000
# $_dpmi = (0x20000)
# DPMI base address
# Default: 0x20000000 (at 512Mb)
# Reserve linear address space for DPMI.
# This is mostly needed for HX extender to be able to load
# non-relocatable win32 binaries.
# Specify the DOS-relative address here or auto for reserve
# adjacent to DOS memory.
# Default: auto
# $_dpmi_base = (0x20000000)
# $_dpmi_lin_rsv_base = (auto)
# Size of reserved linear address space for DPMI.
# Default: 0x8000 (reserve 32Mb)
# $_dpmi_lin_rsv_size = (0x8000)
# Some DJGPP-compiled programs have the NULL pointer dereference bugs.
# They may work under Windows or QDPMI as these unfortunately do not
@@ -383,11 +355,6 @@
# $_cli_timeout = (10)
# apply some tweaks on emulated timers to make some old games more reliable.
# See tweaks.html for more info.
# $_timer_tweaks = (off)
##############################################################################
## Terminal related settings
@@ -423,7 +390,7 @@
# xterm, putty and compatibles window title. Default: %s - DOSEMU
# where %s is the DOS program's name. Use "" to not change the title
# $_xterm_title = "%s - dosemu2"
# $_xterm_title = "%s - DOSEMU"
##############################################################################
## Keyboard related settings
@@ -482,21 +449,14 @@
# $_mouse_baud = (0)
# alternative behaviour in ungrabbed mode
# May fix some problems with cursor positioning, but enabling mouse
# grab is always more reliable.
# Default: off
# $_mouse_ungrab_tweak = (off)
##############################################################################
## Joystick config
# 1st and 2nd joystick device
# e.g. "/dev/input/js0" or default: "/dev/input/js0 /dev/input/js1"
# e.g. "/dev/js0" or default: "/dev/js0 /dev/js1"
# (or "" if you don't want joystick support)
# $_joy_device = "/dev/input/js0 /dev/input/js1"
# $_joy_device = "/dev/js0 /dev/js1"
# range for joystick axis readings, must be > 0, default: 1
@@ -524,9 +484,6 @@
# All "/dev/ttyXX" may be suffixed by the IRQ
# used (instead of the default one), such as "/dev/ttyS2 irq 5"
# or "/dev/ttyS3 irq 9".
# Note: you can use any file here, eg fifo or even a regular file.
# In case of reading a regular file, don't forget to put ^Z (0x1a)
# at the end or there will be no EOF.
#
# "pseudo" keyword may be used to force the pseudo-TTY mode.
# A wrong but quick way to bypass the hardware flow control.
@@ -537,14 +494,6 @@
# "virtual" keyword may be used to redirect the COM port to the terminal.
# A wrong but quick way for the sysop to play his BBS door games locally.
#
# "exec <command>" execute command <command> and pipe it to the serial port.
# For example "exec rxvt -pty-fd 0" launches rxvt that can communicate
# with that serial port. Can also be used to play door games locally.
#
# "pts <name>" create pts <name> and attach its pty to serial port.
# For example "pts /tmp/com1" creates /tmp/com1 for communicating
# with the serial port.
#
# "mouse" keyword enables the serial mouse emulation on the specified port.
# You can then use native mouse driver, like mouse.com.
# Note: if you configured this as a second mouse ($_mouse_internal = (on)),
@@ -557,15 +506,6 @@
# You can then dial to the IP addresses, which will establish the telnet
# connection.
#
# "nullmodem <port_num>" - connect this port to port <port_num> with a
# null-modem cable. You need to also set up port <port_num> and connect
# it to this port the same way.
#
# "ro" - read-only. Write to the port is ignored unless the option below
# is set.
#
# "wrfile <file_name>" - use file <file_name> for com port output.
#
# Default: ""
# $_com1 = ""
@@ -646,17 +586,13 @@
# MPU-401 base i/o port
# $_mpu_base = (0x300)
# $_mpu_base = (0x330)
# MT32 MPU-401 base i/o port
# $_mpu_base_mt32 = (0x330)
# MIDI synth mode for MPU-401 at $_mpu_base_mt32
# MIDI synth mode
# Supported values: "gm", "mt32"
# Default: "mt32"
# Default: "gm"
# $_midi_synth = "mt32"
# $_midi_synth = "gm"
# MPU-401 irq for GM synth mode
# Default: auto (which is equal to $_sb_irq)
@@ -664,9 +600,9 @@
# $_mpu_irq = (auto)
# MPU-401 irq for mt32 synth mode
# Default: 9
# Default: 2
# $_mpu_irq_mt32 = (9)
# $_mpu_irq_mt32 = (2)
# Sound output driver.
# Supported drivers: ao, sdl (if compiled in)
@@ -676,12 +612,8 @@
# MIDI output drivers.
# Comma-separated list of midi drivers to enable.
# Supported GM drivers:
# fluid, timidity, alsa_midi, oss_midi, pipe_midi
# Supported MT-32 drivers:
# munt, alsa_virmidi
# It is better to specify 2 drivers at once, one for GM and one for MT-32.
# Example: "alsa_midi,alsa_virmidi"
# Supported drivers:
# fluid, timidity, munt, alsa_midi, oss_midi, pipe_midi
# Default: "" (which means auto)
# Note: if you use $_wav_file option to record the sound and want
# the rendered midi to also be recorded there, you need to select
@@ -690,16 +622,6 @@
# $_midi_driver = ""
# fluidsynth soundfont path
# $_fluid_sfont = ""
# fluidsynth volume
# Values: 0 to 10 (larger than 10 is possible but results in distortion)
# Default: 6
# $_fluid_volume = (6)
# munt ROMs path.
# Path to munt ROM files.
# Default: "roms" (which means ~/.dosemu/roms)
@@ -719,16 +641,12 @@
# $_opl2lpt_type = "opl2"
# Sound and MIDI plugin parameters.
# Syntax: plugin1:param1=val1 plugin2:param2=val2..."
# Syntax: plugin1:param1=val1,plugin2:param2=val2..."
# Description: dosemu implements many sound and midi plugins.
# Some of them may be selected with the $_sound_driver and $_midi_driver
# options above; some are managed by dosemu automatically.
# This option allows to pass the parameters to any of them.
# Example: "alsa_virmidi:dev_name=munt"
# If your /etc/asound.conf doesn't define the rawmidi device index,
# you can set it like in this example:
# Example: "alsa_midi:dev_name=hw:3,0 alsa_virmidi:dev_name=hw:3,1"
# You can disable some plugins this way: "alsa_virmidi:enabled=0"
# Default: ""
# $_snd_plugin_params = ""
@@ -764,9 +682,9 @@
# $_pktdriver = (on)
# NE2000 emulation (experimental). Default: on
# NE2000 emulation (experimental). Default: off
# $_ne2k = (on)
# $_ne2k = (off)
# Virtual networking type. "eth" for exclusive NIC access, "tap" for
# using the TAP virtual device, "vde" for vde2 and "slirp" for slirp.
@@ -789,12 +707,6 @@
# $_tapdev = "tap0"
# Network daemon socket name (for passt mainly).
# Set to "/tmp/passt_1.socket" to use with passt.
# Default: ""
# $_netsock = ""
# vdeswitch socket name for packet driver in "vde" mode.
# If empty string is specified, dosemu will try to set up the VDE switch
# automatically.
@@ -830,7 +742,7 @@
# Title in the top bar of the window. Default = "DOSEMU2"
# $_X_title = "dosemu2"
# $_X_title = "DOSEMU2"
# Show name of running app in the top bar of the window. Default: on
@@ -918,14 +830,6 @@
# $_X_background_pause = (off)
# Hide the Close button and disable the Close menu item
# $_X_noclose = (off)
# Disable resize by dragging window borders
# $_X_noresize = (off)
##############################################################################
## Settings specific to SDL video driver (dosemu -S)
@@ -939,19 +843,6 @@
# $_SDL_fonts = "Flexi IBM VGA False, Flexi IBM VGA True"
# Show window controls.
# It is not a common need to disable them, and can be done at run-time
# by pressing Ctrl-Alt-b.
# Default: on
# $_SDL_wcontrols = (on)
# Enable native clipboard access.
# Can be toggled at run-time by pressing Ctrl-Alt-c.
# Default: off
# $_SDL_clip_native = (off)
##############################################################################
## Common video driver settings
@@ -972,6 +863,12 @@
# [priv] list of portnumbers such as "0x1ce 0x1cf 0x238" or
# "0x1ce range 0x280,0x29f 310" or "range 0x1a0,(0x1a0+15)". Default: ""
# $_ports = "device /dev/null fast 0x200"
# $_ports = $_ports, " device /dev/lp0 range 0x378 0x37a"
# The blank is important
# "device" means: if the ports are registered, open this device to block
# access. The open must be successful or access to the ports will be denied.
# If you know what you are doing, use /dev/null to fake a device to block
# $_ports = ""

View File

@@ -108,6 +108,7 @@ else
if (strlen($_trace_mmio)) trace_mmio { $$_trace_mmio } endif
cpuspeed $_cpuspeed
rdtsc $_rdtsc
timer 0
mathco $_mathco
@@ -130,17 +131,18 @@ else
endif
umb_a0 $_umb_a0
umb_b0 $_umb_b0
umb_b8 $_umb_b8
umb_f0 $_umb_f0
hma $_hma
dos_up $_dos_up
dpmi $_dpmi
dpmi_base $_dpmi_base
dpmi_lin_rsv_base $_dpmi_lin_rsv_base
dpmi_lin_rsv_size $_dpmi_lin_rsv_size
pm_dos_api 1
ignore_djgpp_null_derefs $_ignore_djgpp_null_derefs
dosmem $_dosmem
ext_mem $_ext_mem
xms $_xms
if ($_ext_mem)
ext_mem $_ext_mem
else
ext_mem $_xms
endif
if ($_emusys ne "") emusys $_emusys endif
@@ -187,13 +189,11 @@ else
fixed_aspect $_X_fixed_aspect vgaemu_memsize $_X_vgaemu_memsize
lfb $_X_lfb pm_interface $_X_pm_interface mitshm $_X_mitshm
background_pause $_X_background_pause fullscreen $_X_fullscreen
noclose $_X_noclose
noresize $_X_noresize
$$xxx
}
## SDL settings
SDL { sdl_hwrend $_SDL_hwrend sdl_fonts $_SDL_fonts sdl_wcontrols $_SDL_wcontrols sdl_clip_native $_SDL_clip_native }
SDL { sdl_hwrend $_SDL_hwrend sdl_fonts $_SDL_fonts }
# video settings
vga_fonts $$_force_vga_fonts
@@ -224,19 +224,17 @@ else
## sound settings
sound $_sound
sound_emu { sb_base $_sb_base
if ($_sound)
sound_emu { sb_base $_sb_base
sb_irq $_sb_irq
sb_dma $_sb_dma
sb_hdma $_sb_hdma
mpu_base $_mpu_base
mpu_base_mt32 $_mpu_base_mt32
midi_synth $_midi_synth
mpu_irq $_mpu_irq
mpu_irq_mt32 $_mpu_irq_mt32
sound_driver $_sound_driver
midi_driver $_midi_driver
fluid_sfont $_fluid_sfont
fluid_volume $_fluid_volume
munt_roms $_munt_roms
opl2lpt_dev $_opl2lpt_dev
opl2lpt_type $_opl2lpt_type
@@ -244,7 +242,8 @@ else
pcm_hpf $_pcm_hpf
midi_file $_midi_file
wav_file $_wav_file
}
}
endif
## joystick settings
joystick_emu { joy_device $_joy_device joy_dos_min $_joy_dos_min
@@ -254,7 +253,6 @@ else
## hacks
cli_timeout $_cli_timeout
timemode $_timemode
timer_tweaks $_timer_tweaks
file_lock_limit $$_file_lock_limit
lfn_support $_lfn_support
@@ -268,33 +266,19 @@ else
ttylocks { directory $$xxx namestub LCK.. }
if (1) # no idea why but we need this...
foreach $xxx (" ", "1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16")
$yyy = "com", $xxx
$zzz = "$_com", $xxx
$zzz = $$zzz
if (strlen($zzz))
$jjj = ""
if (strchr($zzz, " ") > 0)
$yyy = strsplit($zzz, strchr($zzz, " ") + 1, 999)
$zzz = strdel($zzz, strchr($zzz, " "), 999)
else
$yyy = ""
endif
if (strchr($zzz, "/") == 0)
if (strchr($yyy, " ") > 0)
$jjj = strsplit($yyy, strchr($yyy, " ") + 1, 999)
$yyy = strdel($yyy, strchr($yyy, " "), 999)
endif
if (strlen($jjj) > 0)
serial { com $xxx device $zzz $$yyy $jjj }
if ($zzz eq "virtual")
serial { com $xxx virtual }
else if ($zzz eq "mouse")
serial { com $xxx mouse }
else if ($zzz eq "vmodem")
serial { com $xxx vmodem }
else
serial { com $xxx device $zzz $$yyy }
endif
else
if (strlen($yyy) > 0)
serial { com $xxx $$zzz $yyy }
else
serial { com $xxx $$zzz }
endif
endif
serial { com $xxx device $$zzz }
endif endif
endif
done
endif
@@ -306,7 +290,7 @@ else
$xxx = "baudrate ", $_mouse_baud
endif
$xxx = $xxx, " device '", $_mouse_dev, "'"
mouse { $$_mouse $$_mouse_flags $$xxx internaldriver mouse_ungrab_tweak $_mouse_ungrab_tweak }
mouse { $$_mouse $$_mouse_flags $$xxx internaldriver }
else
$xxx = "'", $_mouse_dev, "'"
mouse { $$_mouse device $$xxx }
@@ -428,9 +412,9 @@ else
$xxx_pref = strdel($xxxx, strchr($xxxx, "*"), 999);
$xxx_suff = strsplit($xxxx, strchr($xxxx, "*") + 1, 999);
if (strchr($xxx_pref, "/") == 0)
$xxxx = shell("cd '", $xxx_pref, "' 2>/dev/null && printf *")
$xxxx = shell("cd '", $xxx_pref, "' 2>/dev/null && echo -n *")
else
$xxxx = shell("cd '", $DOSEMU_IMAGE_DIR, "/", $xxx_pref, "' 2>/dev/null && printf *")
$xxxx = shell("cd '", $DOSEMU_IMAGE_DIR, "/", $xxx_pref, "' 2>/dev/null && echo -n *")
endif
if ($DOSEMU_SHELL_RETURN)
abort "**** directory ", $xxx_pref, " not accessible";
@@ -444,27 +428,58 @@ else
foreach $xxx ($LIST_DELIM, $xxxx)
$xxx = $xxx_pref, $xxx, $xxx_suff
if (!strncmp($xxx, "/dev/", 4))
$yyy = strdel($xxx, strstr($xxx, ":"), 999);
$zzz = strsplit($xxx, strstr($xxx, ":"), 999);
$yyy = strdel($xxx, strstr($xxx, ":ro"), 999);
$zzz = strsplit($xxx, strstr($xxx, ":ro"), 999);
if (strtol(strdel($xxx,0,8)) > 0)
disk { partition $yyy $$zzz };
$yyy = "disk { partition ", $yyy;
else
disk { wholedisk $yyy $$zzz };
$yyy = "disk { wholedisk ", $yyy;
endif
if (strlen($zzz))
$yyy = $yyy, " readonly"
endif
$yyy = $yyy, " }";
$$yyy;
else
$yyy = strdel($xxx, strstr($xxx, ":"), 999);
$zzz = strsplit($xxx, strstr($xxx, ":"), 999);
$yyy3 = strdel($xxx, strstr($xxx, ":ro"), 999);
$yyy2 = strdel($yyy3, strstr($xxx, ":hdtype1"), 999);
$yyy1 = strdel($yyy2, strstr($xxx, ":hdtype2"), 999);
$yyy = strdel($yyy1, strstr($xxx, ":hdtype9"), 999);
$zzz = strsplit($xxx, strstr($xxx, ":ro"), 999);
$uuu = strsplit($xxx, strstr($xxx, ":hdtype1"), 999);
$vvv = strsplit($xxx, strstr($xxx, ":hdtype2"), 999);
$www = strsplit($xxx, strstr($xxx, ":hdtype9"), 999);
if (strchr($yyy, "/") != 0)
$yyyy = $DOSEMU_IMAGE_DIR, "/", $yyy
$yyy = $yyyy
endif
shell("test -d '", $yyy, "'")
if (!$DOSEMU_SHELL_RETURN)
disk { directory $yyy $$zzz };
if (strlen($zzz))
disk { directory $yyy readonly };
else if (strlen($uuu))
disk { directory $yyy hdtype1 };
else if (strlen($vvv))
disk { directory $yyy hdtype2 };
else if (strlen($www))
disk { directory $yyy hdtype9 };
else
disk { directory $yyy };
endif endif endif endif
else
shell("test -f '", $yyy, "'")
if (!$DOSEMU_SHELL_RETURN)
disk { image $yyy $$zzz };
if (strlen($zzz))
disk { image $yyy readonly };
else if (strlen($uuu))
disk { image $yyy hdtype1 };
else if (strlen($vvv))
disk { image $yyy hdtype2 };
else if (strlen($www))
disk { image $yyy hdtype9 };
else
disk { image $yyy };
endif endif endif endif
else
abort "hdimage ", $yyy, " not found"
endif
@@ -557,7 +572,6 @@ else
tapdev $_tapdev
vdeswitch $_vdeswitch
slirpargs $_slirpargs
netsock $_netsock
vnet $_vnet
pktdriver $_pktdriver
ne2k $_ne2k

View File

@@ -1,7 +1,6 @@
{
/* add your mappings below and send a patch */
"locales": [
{ "lang": "C", "codepage": "cp437", "country": 001 },
{ "lang": "en_US", "codepage": "cp437", "country": 001 },
{ "lang": "cs_CZ", "codepage": "cp852", "country": 042 },
{ "lang": "af_ZA", "codepage": "cp858", "country": 785 },
@@ -61,7 +60,6 @@
{ "lang": "nl_NL", "codepage": "cp858", "country": 031 },
{ "lang": "nn_NO", "codepage": "cp858", "country": 047 },
{ "lang": "no_NO", "codepage": "cp858", "country": 047 },
{ "lang": "pl_PL", "codepage": "cp852", "country": 048 },
{ "lang": "pt_BR", "codepage": "cp858", "country": 055 },
{ "lang": "pt_PT", "codepage": "cp858", "country": 351 },
{ "lang": "sv_FI", "codepage": "cp858", "country": 358 },