summaryrefslogtreecommitdiffstats
path: root/games/bstone/datadir.diff
diff options
context:
space:
mode:
author B. Watson2016-08-15 01:44:23 +0200
committer David Spencer2016-08-15 01:44:23 +0200
commit9f7821b5b88d2a520a3c975fa28b3e71ad5ecfe4 (patch)
tree3d9b385e67a2dab0fb85075d6fe404c977986aa9 /games/bstone/datadir.diff
parent06b1260579bc185748fe93415b0590021ffabf20 (diff)
downloadslackbuilds-9f7821b5b88d2a520a3c975fa28b3e71ad5ecfe4.tar.gz
games/bstone: Added (first-person shooter game).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'games/bstone/datadir.diff')
-rw-r--r--games/bstone/datadir.diff25
1 files changed, 25 insertions, 0 deletions
diff --git a/games/bstone/datadir.diff b/games/bstone/datadir.diff
new file mode 100644
index 0000000000..b3dec92c0f
--- /dev/null
+++ b/games/bstone/datadir.diff
@@ -0,0 +1,25 @@
+diff -Naur bstone-1.1.7.orig/3d_main.cpp bstone-1.1.7/3d_main.cpp
+--- bstone-1.1.7.orig/3d_main.cpp 2016-04-09 08:21:25.000000000 -0400
++++ bstone-1.1.7/3d_main.cpp 2016-08-13 21:47:13.965436399 -0400
+@@ -9138,20 +9138,7 @@
+
+ const std::string& get_default_data_dir()
+ {
+- static std::string result;
+- static auto is_initialized = false;
+-
+- if (!is_initialized) {
+- is_initialized = true;
+-
+- auto sdl_dir = ::SDL_GetBasePath();
+-
+- if (sdl_dir) {
+- result = sdl_dir;
+- ::SDL_free(sdl_dir);
+- }
+- }
+-
++ static std::string result = "/usr/share/games/bstone/";
+ return result;
+ }
+ // BBi