games-fps/eduke32 20260807
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
This patch fixes compilation with GCC-10.
|
||||
|
||||
diff -dru a/source/audiolib/include/music.h b/source/audiolib/include/music.h
|
||||
--- a/source/audiolib/include/music.h
|
||||
+++ b/source/audiolib/include/music.h
|
||||
@@ -38,6 +38,7 @@
|
||||
|
||||
#ifdef __linux__
|
||||
#include <vector>
|
||||
+#include <string>
|
||||
|
||||
typedef struct
|
||||
{
|
||||
@@ -0,0 +1,11 @@
|
||||
--- a/source/sw/src/game.cpp
|
||||
+++ b/source/sw/src/game.cpp
|
||||
@@ -3467,7 +3467,7 @@
|
||||
}
|
||||
else
|
||||
#endif
|
||||
- OSD_SetLogFile(APPBASENAME ".log");
|
||||
+ OSD_SetLogFile("/tmp/" APPBASENAME ".log");
|
||||
|
||||
wm_setapptitle(APPNAME);
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
--- a/source/duke3d/src/common.cpp
|
||||
+++ b/source/duke3d/src/common.cpp
|
||||
@@ -642,6 +642,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/" APPBASENAME);
|
||||
addsearchpath("/usr/local/share/games/" APPBASENAME);
|
||||
addsearchpath("/app/extensions/extra");
|
||||
@@ -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}
|
||||
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Get all installed zip files
|
||||
zips=$(ls /usr/share/games/eduke32/*.zip)
|
||||
|
||||
# Create opts for voidsw
|
||||
for zip in ${zips[@]}; do
|
||||
opts+="-g ${zip} "
|
||||
done
|
||||
|
||||
# Switch to /tmp, for writing there the log file and run voidsw with set opts
|
||||
cd /tmp && voidsw ${opts}
|
||||
Reference in New Issue
Block a user