mirror of
https://github.com/etlegacy/etlegacy-tools.git
synced 2024-11-24 21:11:17 +00:00
Update laucher to support 2.81.1 version
It now produces versions with architecture suffix appended. Pass suffix as the first parameter to laucher. Shared one laucher for potentially multiple architectures.
This commit is contained in:
parent
1a5b469791
commit
3af217eac3
1 changed files with 6 additions and 3 deletions
|
@ -28,8 +28,11 @@ show_instructions() {
|
|||
exec xdg-open "$DATAPAGE"
|
||||
}
|
||||
|
||||
# First option argument is variant. Others are passed to the executable
|
||||
start_game() {
|
||||
exec /usr/bin/etl
|
||||
local VARIANT="${1:-}"
|
||||
[ "$#" -gt 0 ] && shift
|
||||
exec /usr/bin/etl${VARIANT} "$@"
|
||||
}
|
||||
|
||||
start_installer() {
|
||||
|
@ -68,11 +71,11 @@ done
|
|||
if [ -z "$FOUNDPAK" ]; then
|
||||
echo "pak[012].pk3 data not found!"
|
||||
if [ -x "$INSTALLER"]; then
|
||||
start_installer && start_game
|
||||
start_installer && start_game "$@"
|
||||
# Would terminate here on success
|
||||
fi
|
||||
if [ -f "$DATAPAGE" ]; then
|
||||
show_instructions
|
||||
fi
|
||||
fi
|
||||
start_game
|
||||
start_game "$@"
|
||||
|
|
Loading…
Reference in a new issue