aboutsummaryrefslogtreecommitdiff
path: root/games/bstone/datadir.diff
blob: b3dec92c0fa4489a2d4d2a3ef6a8a4cec15e07d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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