From b356553825776f2a8fb3d578a8ada323881db463 Mon Sep 17 00:00:00 2001 From: SDD Date: Fri, 16 Oct 2026 16:53:14 +0300 Subject: [PATCH] run.sh net: use a private cfg directory -- a saved per-device interface=-1 silently overrides -networkprovider and no tap is ever opened --- .gitignore | 3 +++ harness/mame/run.sh | 19 ++++++++++++------- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 0b1cf5b..29df0bd 100644 --- a/.gitignore +++ b/.gitignore @@ -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/ diff --git a/harness/mame/run.sh b/harness/mame/run.sh index c1ff3e8..a8b0e3b 100755 --- a/harness/mame/run.sh +++ b/harness/mame/run.sh @@ -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/.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)