diff options
Diffstat (limited to 'games-fps/eduke32/files')
-rwxr-xr-x | games-fps/eduke32/files/eduke32-bin | 12 | ||||
-rw-r--r-- | games-fps/eduke32/files/log-to-tmpdir.patch | 11 | ||||
-rw-r--r-- | games-fps/eduke32/files/search-duke3d-path.patch | 11 |
3 files changed, 34 insertions, 0 deletions
diff --git a/games-fps/eduke32/files/eduke32-bin b/games-fps/eduke32/files/eduke32-bin new file mode 100755 index 000000000000..18e5b08e1eaa --- /dev/null +++ b/games-fps/eduke32/files/eduke32-bin @@ -0,0 +1,12 @@ +#!/bin/sh + +# Get all installed zip files +zips=$(ls /usr/share/games/eduke32/*.zip) + +# Create opts for eduke32 +for zip in ${zips[@]}; do + opts+="-g ${zip} " +done + +# Switch to /tmp, for writing there the log file and run eduke32 with set opts +cd /tmp && eduke32 ${opts} diff --git a/games-fps/eduke32/files/log-to-tmpdir.patch b/games-fps/eduke32/files/log-to-tmpdir.patch new file mode 100644 index 000000000000..24cec1b00af1 --- /dev/null +++ b/games-fps/eduke32/files/log-to-tmpdir.patch @@ -0,0 +1,11 @@ +--- a/source/duke3d/src/game.cpp 2018-05-08 19:32:19.000000000 +0200 ++++ b/source/duke3d/src/game.cpp 2018-05-10 23:46:21.540213019 +0200 +@@ -6234,7 +6234,7 @@ + } + else + #endif +- OSD_SetLogFile(APPBASENAME ".log"); ++ OSD_SetLogFile("/tmp/" APPBASENAME ".log"); + + OSD_SetFunctions(GAME_drawosdchar, + GAME_drawosdstr, diff --git a/games-fps/eduke32/files/search-duke3d-path.patch b/games-fps/eduke32/files/search-duke3d-path.patch new file mode 100644 index 000000000000..c35af40c749e --- /dev/null +++ b/games-fps/eduke32/files/search-duke3d-path.patch @@ -0,0 +1,11 @@ +--- a/source/duke3d/src/common.cpp 2018-04-12 23:03:47.000000000 +0200 ++++ b/source/duke3d/src/common.cpp 2018-05-11 00:04:36.590712915 +0200 +@@ -794,6 +794,8 @@ + + addsearchpath("/usr/share/games/jfduke3d"); + addsearchpath("/usr/local/share/games/jfduke3d"); ++ addsearchpath("/usr/share/games/duke3d"); ++ addsearchpath("/usr/share/duke3d"); + addsearchpath("/usr/share/games/eduke32"); + addsearchpath("/usr/local/share/games/eduke32"); + #elif defined EDUKE32_OSX |