diff options
author | Daniel Nagy <danielnagy@posteo.de> | 2021-02-22 21:06:43 +0100 |
---|---|---|
committer | Daniel Nagy <danielnagy@posteo.de> | 2021-03-20 15:35:16 +0100 |
commit | 9815ef3639ac523d077805f211d5b09dccd7f794 (patch) | |
tree | 0c666e4d90f7681b87b0d727adf43c46664d01e9 /pkgs/games/0ad/rootdir_env.patch | |
parent | 7f21b53fc075755d34a16ec7a352389578a3de50 (diff) |
zeroad: 0.0.23b -> 0.0.24b
Diffstat (limited to 'pkgs/games/0ad/rootdir_env.patch')
-rw-r--r-- | pkgs/games/0ad/rootdir_env.patch | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/pkgs/games/0ad/rootdir_env.patch b/pkgs/games/0ad/rootdir_env.patch deleted file mode 100644 index c001473e51049..0000000000000 --- a/pkgs/games/0ad/rootdir_env.patch +++ /dev/null @@ -1,38 +0,0 @@ -diff -ru3 0ad-0.0.20-alpha/source/ps/GameSetup/Paths.cpp 0ad-0.0.20-alpha-new/source/ps/GameSetup/Paths.cpp ---- 0ad-0.0.20-alpha/source/ps/GameSetup/Paths.cpp 2015-02-14 04:45:13.000000000 +0300 -+++ 0ad-0.0.20-alpha-new/source/ps/GameSetup/Paths.cpp 2016-11-03 16:23:47.241514876 +0300 -@@ -155,32 +155,8 @@ - - /*static*/ OsPath Paths::Root(const OsPath& argv0) - { --#if OS_ANDROID -- return OsPath("/sdcard/0ad"); // TODO: this is kind of bogus --#else -- -- // get full path to executable -- OsPath pathname = sys_ExecutablePathname(); // safe, but requires OS-specific implementation -- if(pathname.empty()) // failed, use argv[0] instead -- { -- errno = 0; -- pathname = wrealpath(argv0); -- if(pathname.empty()) -- WARN_IF_ERR(StatusFromErrno()); -- } -- -- // make sure it's valid -- if(!FileExists(pathname)) -- { -- LOGERROR("Cannot find executable (expected at '%s')", pathname.string8()); -- WARN_IF_ERR(StatusFromErrno()); -- } -- -- for(size_t i = 0; i < 2; i++) // remove "system/name.exe" -- pathname = pathname.Parent(); -- return pathname; -- --#endif -+ UNUSED2(argv0); -+ return getenv("ZEROAD_ROOTDIR"); - } - - /*static*/ OsPath Paths::RootData(const OsPath& argv0) |