diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2017-05-09 20:57:05 +0000 |
---|---|---|
committer | Jan Beich <jbeich@FreeBSD.org> | 2017-05-09 20:57:05 +0000 |
commit | 68a8fbed3e6fb7060797f900405452eac95d1c11 (patch) | |
tree | 7406297ed136a6b92280eff13ef6a79b4fbb6826 /games/openbor3482/files/patch-sdl_sdlport.c | |
parent | 309e6c96ce6aef149ad5f9b53b1832abd3c2f879 (diff) | |
download | ports-68a8fbed3e6fb7060797f900405452eac95d1c11.tar.gz ports-68a8fbed3e6fb7060797f900405452eac95d1c11.zip |
games/openbor: update to 3.0.r4504
- Add old slaves for some games (e.g. Ghosts'n Demons) based on
http://www.chronocrash.com/forum/index.php?topic=2360.0
- Annotate .desktop file with build version
- Drop v3.0 from package version
- s/module/game/ in pkg-message for less ambiguity
Changes: https://github.com/DCurrent/openbor/compare/ba1eb4f...4dfdb66
Notes
Notes:
svn path=/head/; revision=440514
Diffstat (limited to 'games/openbor3482/files/patch-sdl_sdlport.c')
-rw-r--r-- | games/openbor3482/files/patch-sdl_sdlport.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/games/openbor3482/files/patch-sdl_sdlport.c b/games/openbor3482/files/patch-sdl_sdlport.c new file mode 100644 index 000000000000..ef9aaa54a148 --- /dev/null +++ b/games/openbor3482/files/patch-sdl_sdlport.c @@ -0,0 +1,30 @@ +Store settings under ~/.openbor instead of current directory + +--- sdl/sdlport.c.orig 2011-04-08 16:22:58 UTC ++++ sdl/sdlport.c +@@ -11,6 +11,9 @@ + #include "ram.h" + #include "video.h" + #include "menu.h" ++#include <sys/stat.h> ++#include <err.h> ++#include <unistd.h> + + #ifdef DARWIN + #include <CoreFoundation/CoreFoundation.h> +@@ -83,6 +86,15 @@ int main(int argc, char *argv[]) + + packfile_mode(0); + ++ if(!getenv("OPENBOR_USE_CURDIR")) ++ { ++ if (chdir(getenv("HOME")) != 0) ++ err(1, "cannot cd to $HOME"); ++ if (mkdir(".openbor", 0755) != 0 && errno != EEXIST) ++ err(1, "cannot mkdir $HOME/.openbor"); ++ if (chdir(".openbor") != 0) ++ err(1, "cannot cd to $HOME/.openbor"); ++ } + dirExists(paksDir, 1); + dirExists(savesDir, 1); + dirExists(logsDir, 1); |