1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-23 03:40:27 +00:00

Merge branch 'fix/macos' into 'master'

make use of std::filesystem::absolute as ::system_complete was dropped from spec

See merge request OpenMW/openmw!1990
This commit is contained in:
psi29a 2022-06-08 14:04:16 +00:00
commit 5d88b39574

View file

@ -211,7 +211,7 @@ int runApplication(int argc, char *argv[])
Platform::init();
#ifdef __APPLE__
std::filesystem::path binary_path = std::filesystem::system_complete(std::filesystem::path(argv[0]));
std::filesystem::path binary_path = std::filesystem::absolute(std::filesystem::path(argv[0]));
std::filesystem::current_path(binary_path.parent_path());
setenv("OSG_GL_TEXTURE_STORAGE", "OFF", 0);
#endif