slackbuilds_ponce/games/bstone/datadir.diff
B. Watson 126627d9d0
games/bstone: Updated for version 1.2.8.
Signed-off-by: B. Watson <yalhcru@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2020-08-29 10:08:35 +07:00

25 lines
618 B
Diff

diff -Naur bstone-1.2.8/src/3d_main.cpp bstone-1.2.8.patched/src/3d_main.cpp
--- bstone-1.2.8/src/3d_main.cpp 2020-07-10 09:58:35.000000000 -0400
+++ bstone-1.2.8.patched/src/3d_main.cpp 2020-08-04 03:07:36.266707676 -0400
@@ -10722,20 +10722,7 @@
const std::string& get_default_data_dir()
{
- static std::string result;
- static auto is_initialized = false;
-
- if (!is_initialized)
- {
- is_initialized = true;
-
- result = bstone::file_system::get_working_dir();
-
-#ifdef __vita__
- result = "ux0:/data/bstone/";
-#endif
- }
-
+ static std::string result = "/usr/share/games/bstone/";
return result;
}