slackbuilds_ponce/games/bstone/datadir.diff
B. Watson ad08b383f1 games/bstone: Updated for version 1.1.8.
Signed-off-by: B. Watson <yalhcru@gmail.com>
2017-08-12 06:58:46 +07:00

25 lines
679 B
Diff

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 @@
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