mirror of
https://git.k-space.ee/arti/vt1200.git
synced 2026-10-30 12:03:54 +02:00
run.sh net: use a private cfg directory -- a saved per-device interface=-1 silently overrides -networkprovider and no tap is ever opened
This commit is contained in:
1 parent
a0d752062f
commit
b356553825
2 files changed
+15
-7
No files matched your search
@@ -45,3 +45,6 @@ video/
|
||||
|
||||
# Worker scratch
|
||||
.vt1200-scratch/
|
||||
|
||||
# Private MAME cfg for run.sh net (holds the per-device network provider; refreshed each run)
|
||||
harness/mame/cfg-net/
|
||||
+12
-7
@@ -89,14 +89,19 @@ case "$MODE" in
|
||||
;;
|
||||
|
||||
net)
|
||||
# the crash-work configuration: skip + tablet (already the default) + the
|
||||
# LANCE attached to a host tap, so frames actually leave the machine. The
|
||||
# driver needs nothing -- MAME's am79c90 brings its own network interface
|
||||
# (device_network_interface); the OSD provider is the only missing link.
|
||||
# Requires the tap to exist and be owned by your user; see the README's
|
||||
# "host-side network plumbing" plan for the sequence.
|
||||
# the crash-work configuration: skip + tablet (already the default) + the LANCE
|
||||
# attached to a host tap.
|
||||
#
|
||||
# A PRIVATE cfg directory is essential. MAME stores the network provider PER
|
||||
# DEVICE in cfg/<game>.cfg, and a saved value wins over -networkprovider -- a
|
||||
# stale interface="-1" (i.e. "none") means no tap is ever opened, silently, with
|
||||
# no verbose output. Refresh it each run so a stale saved interface cannot
|
||||
# reappear. It needs the tap to exist and be owned by your user.
|
||||
CFGDIR="$HERE/cfg-net"
|
||||
rm -rf "$CFGDIR"; mkdir -p "$CFGDIR"
|
||||
exec env VT1200_SKIP_LEVEL1=1 \
|
||||
"$MAME" vt1200 "${COMMON[@]}" -networkprovider taptun -window "$@"
|
||||
"$MAME" vt1200 "${COMMON[@]}" -cfg_directory "$CFGDIR" \
|
||||
-networkprovider taptun -window "$@"
|
||||
;;
|
||||
|
||||
mouse)
|
||||
|
||||
Reference in new issue
Block a user