From eaf3353982319544c8930224f1cad4da613442c6 Mon Sep 17 00:00:00 2001 From: Amar Takhar Date: Sun, 27 Sep 2009 01:53:42 +0000 Subject: [PATCH] Fix location of config.dat on OSX. Originally committed to SVN as r3588. --- aegisub/reporter/aegisub.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aegisub/reporter/aegisub.cpp b/aegisub/reporter/aegisub.cpp index 0b769d8dd..815e95367 100644 --- a/aegisub/reporter/aegisub.cpp +++ b/aegisub/reporter/aegisub.cpp @@ -30,10 +30,10 @@ Aegisub::Aegisub() { wxStandardPathsBase &paths = wxStandardPaths::Get(); // Using ifdefs is a pain but it's much easier to centralise this. -#ifdef __UNIX__ +#if defined(__APPLE__) + wxString configdir = wxString::Format("%s-%s", paths.GetUserDataDir(), _T(AEGISUB_VERSION_DATA)); +#elif defined(__UNIX__) wxString configdir = wxString::Format("%s/.aegisub-%s", paths.GetUserConfigDir(), _T(AEGISUB_VERSION_DATA)); -#elif __APPLE__ - wxString configdir = wxString::Format("%s/Aegisub-%s", paths.GetUserConfigDir(), _T(AEGISUB_VERSION_DATA)); #else wxString configdir = wxString::Format("%s/Aegisub", paths.GetUserConfigDir()); #endif