From: Vadim Zeitlin Date: Sat, 25 Mar 2006 14:50:31 +0000 (+0000) Subject: implemented GetPluginsDir() to behave as documented X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/cc4d990340611a92abeb66c51e3e0e79155d1b1a implemented GetPluginsDir() to behave as documented git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38369 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/unix/stdpaths.cpp b/src/unix/stdpaths.cpp index 9b95c0f884..543294e147 100644 --- a/src/unix/stdpaths.cpp +++ b/src/unix/stdpaths.cpp @@ -52,11 +52,6 @@ wxString wxStandardPaths::GetUserConfigDir() const return wxFileName::GetHomeDir(); } -wxString wxStandardPaths::GetPluginsDir() const -{ - return wxString(); -} - // ============================================================================ // wxStandardPaths implementation for VMS // ============================================================================ @@ -69,6 +64,8 @@ wxString wxStandardPaths::GetInstallPrefix() const { wx_const_cast(wxStandardPaths *, this)->m_prefix = wxT("/sys$system"); } + + return m_prefix; } wxString wxStandardPaths::GetConfigDir() const @@ -91,6 +88,11 @@ wxString wxStandardPaths::GetUserDataDir() const return wxFileName::GetHomeDir(); } +wxString wxStandardPaths::GetPluginsDir() const +{ + return wxString(); // TODO: this is wrong, it should return something +} + #else // !__VMS // ============================================================================ @@ -154,6 +156,11 @@ wxString wxStandardPaths::GetUserDataDir() const return AppendAppName(wxFileName::GetHomeDir() + _T("/.")); } +wxString wxStandardPaths::GetPluginsDir() const +{ + return AppendAppName(GetInstallPrefix() + _T("/lib")); +} + #endif // __VMS/!__VMS #endif // wxUSE_STDPATHS