mirror of https://github.com/odrling/Aegisub
Fix location of config.dat on OSX.
Originally committed to SVN as r3588.
This commit is contained in:
parent
6a792f0635
commit
eaf3353982
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue