From c70dd2ab0ac1776ac11076130aaed4b17180369f Mon Sep 17 00:00:00 2001 From: tmator Date: Mon, 4 May 2009 19:48:00 +0000 Subject: [PATCH] fix plugin dir for nongui version for osx git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3155 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Common/Src/FileUtil.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Source/Core/Common/Src/FileUtil.cpp b/Source/Core/Common/Src/FileUtil.cpp index 3424defd06..a98dbce1be 100644 --- a/Source/Core/Common/Src/FileUtil.cpp +++ b/Source/Core/Common/Src/FileUtil.cpp @@ -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