fix plugin dir for nongui version for osx

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3155 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
tmator 2009-05-04 19:48:00 +00:00
parent 3b173a2dad
commit c70dd2ab0a
1 changed files with 8 additions and 1 deletions

View File

@ -531,8 +531,15 @@ std::string GetBundleDirectory()
CFStringGetFileSystemRepresentation(BundlePath, AppBundlePath, sizeof(AppBundlePath));
CFRelease(BundleRef);
CFRelease(BundlePath);
#if defined(HAVE_WX) && HAVE_WX
return AppBundlePath;
#else
std::string NoWxBundleDirectory;
NoWxBundleDirectory=AppBundlePath;
NoWxBundleDirectory+=DIR_SEP;
NoWxBundleDirectory+="Dolphin.app";
return NoWxBundleDirectory;
#endif
}
#endif