summaryrefslogtreecommitdiffstats
path: root/games/marathon-data/marathon
diff options
context:
space:
mode:
author B. Watson2020-10-27 05:43:44 +0100
committer Willy Sudiarto Raharjo2020-10-31 05:15:40 +0100
commitdcdb3d77bea197a9b2344b591fb2f0fa04dfbbd7 (patch)
tree8fcdab8c1b850ef95f16a9467057609a81f6ed62 /games/marathon-data/marathon
parent0068eac304e75b674d2f34ecacbc121e79170633 (diff)
downloadslackbuilds-dcdb3d77bea197a9b2344b591fb2f0fa04dfbbd7.tar.gz
games/marathon-data: Updated for version 20200904.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/marathon-data/marathon')
-rw-r--r--games/marathon-data/marathon19
1 files changed, 18 insertions, 1 deletions
diff --git a/games/marathon-data/marathon b/games/marathon-data/marathon
index c71ef6fb56..36eda97fef 100644
--- a/games/marathon-data/marathon
+++ b/games/marathon-data/marathon
@@ -1,6 +1,23 @@
#!/bin/sh
+# 20201026 bkw: if someone started the game without the wrapper
+# script (giving the path to the gamedata on the command line),
+# then tries to start the game again using this wrapper script,
+# it would fail to find its data files. Added ALEPHONE_DEFAULT_DATA
+# here to work around it. The issue was pointed out to me by
+# orbea, and lives here:
+# https://github.com/Aleph-One-Marathon/alephone/issues/24#issuecomment-715476894
+
ALEPHONE_DATA="/usr/share/AlephOne/gamedata/Marathon"
-export ALEPHONE_DATA
+ALEPHONE_DEFAULT_DATA="$ALEPHONE_DATA"
+export ALEPHONE_DATA ALEPHONE_DEFAULT_DATA
+
+# work around another issue found by orbea:
+# https://github.com/Aleph-One-Marathon/alephone/pull/225
+# I can't reproduce this, it may only affect -current, but I can't see
+# any harm in adding the workaround here.
+
+SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0
+export SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS
exec alephone "$@"