1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-06-05 14:41:32 +00:00

Remove boost:: from openmw/main.cpp

This commit is contained in:
jvoisin 2022-05-28 22:51:32 +02:00
parent f84be8c3f9
commit d903e4b1b2

View file

@ -16,6 +16,8 @@
#include <cstdlib> #include <cstdlib>
#endif #endif
#include <filesystem>
#if (defined(__APPLE__) || defined(__linux) || defined(__unix) || defined(__posix)) #if (defined(__APPLE__) || defined(__linux) || defined(__unix) || defined(__posix))
#include <unistd.h> #include <unistd.h>
#endif #endif
@ -206,8 +208,8 @@ namespace
int runApplication(int argc, char *argv[]) int runApplication(int argc, char *argv[])
{ {
#ifdef __APPLE__ #ifdef __APPLE__
boost::filesystem::path binary_path = boost::filesystem::system_complete(boost::filesystem::path(argv[0])); std::filesystem::path binary_path = std::filesystem::system_complete(std::filesystem::path(argv[0]));
boost::filesystem::current_path(binary_path.parent_path()); std::filesystem::current_path(binary_path.parent_path());
setenv("OSG_GL_TEXTURE_STORAGE", "OFF", 0); setenv("OSG_GL_TEXTURE_STORAGE", "OFF", 0);
#endif #endif