implemented GetPluginsDir() to behave as documented
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38369 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user