Skip to content

Commit 0c3a732

Browse files
committed
atari800 - allow additional parameters to be sent to launch script
1 parent 3cd1d26 commit 0c3a732

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scriptmodules/emulators/atari800/atari800.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22

33
emulator="./EMULATOR"
44
rom="$1"
5+
shift
6+
params=("$@")
57

68
pushd "${0%/*}" >/dev/null
79

810
if [[ -z "$rom" ]]; then
9-
"$emulator"
11+
"$emulator" "${params[@]}"
1012
else
1113
source "../../lib/archivefuncs.sh"
1214

@@ -17,7 +19,7 @@ else
1719
rom="${arch_files[0]}"
1820
fi
1921

20-
"$emulator" "$rom"
22+
"$emulator" "$rom" "${params[@]}"
2123
archiveCleanup
2224
fi
2325

0 commit comments

Comments
 (0)