https://gitlab.synchro.net/main/sbbs/-/commit/77a0284c7c66cbebeed5cfc9
Modified Files:
ctrl/dosemu.conf sbbs.ini docs/v322_new.md exec/dosemu.ini external.bat src/sbbs3/sbbs_ini.c
Log Message:
DOSEMU: switch the stock launch files to dosemu2
The stock exec/dosemu.ini, exec/external.bat and ctrl/dosemu.conf date
from 52487ec40d (slots-15-stud, 2020-12-17) and were written for
dosemu 1.x, which current Linux distributions no longer package. Under
dosemu2 they fail before the door starts (see #433):
- dosemu2 puts its own command, shell and extras drives at D:, E: and F:,
and ignores DOSDRIVE_D, so -ED:external.bat is "Bad command or file name".
- dosemu2's lredir rejects the backslash form external.bat used
(linux\fs\sbbs\...) with "format invalid", and only redirects host paths
that $_lredir_paths allows.
So map the directories on the dosemu2 command line instead of with lredir:
-d for the xtrn, ctrl, data and exec dirs and -K for the node dir, with $_hdimage = "+0 -5 +1" in dosemu.conf keeping D: through H: free. dosemu2
then assigns the same letters as before (D: node, E: xtrn, F: ctrl,
G: data, H: exec) and runs external.bat from the node dir.
Also:
- external.bat loads dosemu2's built-in fossil.com instead of x00.exe
(not included with dosemu2), no longer runs share, and no longer
requires a DOSUTILS directory to reach its setup section.
- dosemu.ini adds -q to hide most of dosemu2's start-up banner from the
caller, and drops the injected keystroke, which reached stdio doors as
a stray 'J' at the start of the user's input. With that gone the
[stdio] command line was identical to the default one, so it's removed.
- The default DOSemuPath is now /usr/libexec/dosemu2/dosemu2.bin.
Tested on a Raspberry Pi 3 (Raspberry Pi OS Lite 64-bit, Debian 13,
dosemu2 2.0~pre9 from the dosemu2 PPA) with a FOSSIL door (Legend of the
Red Dragon 4.07) and a stdio door, over telnet.
Co-Authored-By: Claude Opus 5.5 <
noreply@anthropic.com>
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net