]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/stdpaths.h
don't pass NULL pointer to printf(), this crashes Solaris printf
[wxWidgets.git] / include / wx / stdpaths.h
index ed75f6e2316ab81431c74693d1f9c5501d84c723..c4b3cb2b7b061d767dae52c479720c6bafb766f4 100644 (file)
@@ -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