X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/07158944d86fc3895c24a5a9848616405d3d91db..0944fceb987def04dc89d03d58c35793d0ecdfed:/include/wx/stdpaths.h diff --git a/include/wx/stdpaths.h b/include/wx/stdpaths.h index ed75f6e231..c4b3cb2b7b 100644 --- a/include/wx/stdpaths.h +++ b/include/wx/stdpaths.h @@ -95,6 +95,28 @@ protected: #include "wx/unix/stdpaths.h" #elif defined(__PALMOS__) #include "wx/palmos/stdpaths.h" +#else + +// ---------------------------------------------------------------------------- +// Minimal generic implementation +// ---------------------------------------------------------------------------- + +class WXDLLIMPEXP_BASE wxStandardPaths : public wxStandardPathsBase +{ +public: + void SetInstallPrefix(const wxString& prefix) { m_prefix = prefix; } + wxString GetInstallPrefix() const { return m_prefix; } + virtual wxString GetConfigDir() const { return m_prefix; } + virtual wxString GetUserConfigDir() const { return m_prefix; } + virtual wxString GetDataDir() const { return m_prefix; } + virtual wxString GetLocalDataDir() const { return m_prefix; } + virtual wxString GetUserDataDir() const { return m_prefix; } + virtual wxString GetPluginsDir() const { return m_prefix; } + +private: + wxString m_prefix; +}; + #endif #endif // wxUSE_STDPATHS