summaryrefslogtreecommitdiff
path: root/games/bstone/datadir.diff
diff options
context:
space:
mode:
Diffstat (limited to 'games/bstone/datadir.diff')
-rw-r--r--games/bstone/datadir.diff40
1 files changed, 22 insertions, 18 deletions
diff --git a/games/bstone/datadir.diff b/games/bstone/datadir.diff
index 2825740952..ebb339fe27 100644
--- a/games/bstone/datadir.diff
+++ b/games/bstone/datadir.diff
@@ -1,25 +1,29 @@
-diff -Naur bstone-1.1.8/src/3d_main.cpp bstone-1.1.8.patched/src/3d_main.cpp
---- bstone-1.1.8/src/3d_main.cpp 2017-08-06 06:52:35.000000000 -0400
-+++ bstone-1.1.8.patched/src/3d_main.cpp 2017-08-07 12:33:38.268538355 -0400
-@@ -9658,20 +9658,7 @@
+diff -Naur bstone-1.1.14/src/3d_main.cpp bstone-1.1.14.patched/src/3d_main.cpp
+--- bstone-1.1.14/src/3d_main.cpp 2019-11-09 05:08:15.000000000 -0500
++++ bstone-1.1.14.patched/src/3d_main.cpp 2019-11-27 14:08:41.481084182 -0500
+@@ -10523,24 +10523,7 @@
const std::string& get_default_data_dir()
{
-- static std::string result;
-- static auto is_initialized = false;
+- static std::string result;
+- static auto is_initialized = false;
-
-- if (!is_initialized) {
-- is_initialized = true;
+- if (!is_initialized)
+- {
+- is_initialized = true;
-
-- auto sdl_dir = ::SDL_GetBasePath();
+- 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;
+- if (sdl_dir)
+- {
+- result = sdl_dir;
+- ::SDL_free(sdl_dir);
+- }
+- }
+-#ifdef __vita__
+- result = "ux0:/data/bstone/";
+-#endif
++ static std::string result = "/usr/share/games/bstone/";
+ return result;
}
- // BBi
+