mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 21:49:55 +00:00
platform check fix
This commit is contained in:
parent
768c9bdf07
commit
ecfe57caf2
1 changed files with 4 additions and 2 deletions
|
@ -2,13 +2,15 @@
|
||||||
#include <boost/filesystem.hpp>
|
#include <boost/filesystem.hpp>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
#include <OgrePrerequisites.h>
|
||||||
|
|
||||||
bool isFile(const char *name)
|
bool isFile(const char *name)
|
||||||
{
|
{
|
||||||
boost::filesystem::path cfg_file_path(name);
|
boost::filesystem::path cfg_file_path(name);
|
||||||
return boost::filesystem::exists(cfg_file_path);
|
return boost::filesystem::exists(cfg_file_path);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef OGRE_PLATFORM == OGRE_PLATFORM_APPLE
|
#if OGRE_PLATFORM == OGRE_PLATFORM_APPLE
|
||||||
#include <CoreFoundation/CoreFoundation.h>
|
#include <CoreFoundation/CoreFoundation.h>
|
||||||
|
|
||||||
std::string macBundlePath()
|
std::string macBundlePath()
|
||||||
|
@ -16,7 +18,7 @@ std::string macBundlePath()
|
||||||
char path[1024];
|
char path[1024];
|
||||||
CFBundleRef mainBundle = CFBundleGetMainBundle();
|
CFBundleRef mainBundle = CFBundleGetMainBundle();
|
||||||
assert(mainBundle);
|
assert(mainBundle);
|
||||||
|
|
||||||
CFURLRef mainBundleURL = CFBundleCopyBundleURL(mainBundle);
|
CFURLRef mainBundleURL = CFBundleCopyBundleURL(mainBundle);
|
||||||
assert(mainBundleURL);
|
assert(mainBundleURL);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue