feat: record the uae4all working directory

RetroPie starts UAE4All2 with pushd $md_inst, the directory whose
kickstarts folder it links to BIOS/amiga. The scriptmodule reader now
emits that working directory as it does for DraStic.
This commit is contained in:
Abdessamad Derraz committed 2026-11-09 17:28:00 +01:00
1 parent 0a618d0a05
commit a2bf1c6f8e
2 files changed
+13 -3

No files matched your search

+9
View File
@@ -1181,6 +1181,15 @@ launchers:
fails_when_missing: false
depends_on_option: "[[ ! -f \"$biosdir/aros-amiga-m68k-ext.bin\" ]]"
source_ref: "scriptmodules/emulators/uae4all.sh:85"
- emulator: uae4all
package: uae4all
build: standalone
kind: passes_path
names: []
search_dir: $md_inst
passes_to: working directory of $romdir/amiga/+Start UAE4All.sh
fails_when_missing: false
source_ref: "scriptmodules/emulators/uae4all.sh:90"
- emulator: uae4arm
package: uae4arm
repo: "git https://github.com/Chips-fr/uae4arm-rpi.git master"
+4 -3
View File
@@ -49,9 +49,10 @@ OUTSIDE_BIOS: dict[str, tuple[str, ...]] = {
}
# Packages whose emulator reads its system files below the working directory
# the generated launch script enters with pushd, a folder outside $biosdir:
# DraStic opens system/<name> under it. Each must still pushd.
WORKING_DIRECTORY: tuple[str, ...] = ("drastic",)
# the generated launch script enters with pushd: DraStic opens system/<name>
# under it, UAE4All2 kickstarts/<name> (its launchDir is getcwd()). Each must
# still pushd.
WORKING_DIRECTORY: tuple[str, ...] = ("drastic", "uae4all")
_FUNCTION = re.compile(r"^function\s+([\w.+-]+)\s*\(\)\s*\{\s*$")
_ASSIGN = re.compile(r"^(?:local\s+)?([A-Za-z_]\w*)=(.*)$")