mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 21:49:55 +00:00
[macOS] Set OpenMW working dir to <bundle>/Contents/MacOS
This commit is contained in:
parent
db69342b5d
commit
ea888519c7
1 changed files with 2 additions and 3 deletions
|
@ -352,9 +352,8 @@ int main(int argc, char**argv)
|
|||
#endif
|
||||
|
||||
#ifdef __APPLE__
|
||||
// FIXME: set current dir to bundle path
|
||||
//boost::filesystem::path bundlePath = boost::filesystem::path(Ogre::macBundlePath()).parent_path();
|
||||
//boost::filesystem::current_path(bundlePath);
|
||||
boost::filesystem::path binary_path = boost::filesystem::system_complete(boost::filesystem::path(argv[0]));
|
||||
boost::filesystem::current_path(binary_path.parent_path());
|
||||
#endif
|
||||
|
||||
engine.reset(new OMW::Engine(cfgMgr));
|
||||
|
|
Loading…
Reference in a new issue