From 3552ad045db07cd14a3639d4d61a3ccf7e84312d Mon Sep 17 00:00:00 2001 From: Nikolay Kasyanov Date: Wed, 9 Mar 2011 21:54:01 +0300 Subject: [PATCH] Removed obsolete macBundlePath function from fileops.cpp. Using Ogre::macBundlePath --- components/misc/fileops.cpp | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/components/misc/fileops.cpp b/components/misc/fileops.cpp index 2a70238f8..b7b9a8d78 100644 --- a/components/misc/fileops.cpp +++ b/components/misc/fileops.cpp @@ -10,26 +10,3 @@ bool isFile(const char *name) return boost::filesystem::exists(cfg_file_path); } -#if OGRE_PLATFORM == OGRE_PLATFORM_APPLE -#include - -std::string macBundlePath() -{ - char path[1024]; - CFBundleRef mainBundle = CFBundleGetMainBundle(); - assert(mainBundle); - - CFURLRef mainBundleURL = CFBundleCopyBundleURL(mainBundle); - assert(mainBundleURL); - - CFStringRef cfStringRef = CFURLCopyFileSystemPath(mainBundleURL, kCFURLPOSIXPathStyle); - assert(cfStringRef); - - CFStringGetCString(cfStringRef, path, 1024, kCFStringEncodingASCII); - - CFRelease(mainBundleURL); - CFRelease(cfStringRef); - - return std::string(path); -} -#endif