X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/adaa49a801c69360fb57d13e1fe8aef7022c3b34..669c595dafb825d27fda99fcde39ad2fc88e0db3:/src/msw/stdpaths.cpp diff --git a/src/msw/stdpaths.cpp b/src/msw/stdpaths.cpp index 5e9de59ee3..7eef3af3a0 100644 --- a/src/msw/stdpaths.cpp +++ b/src/msw/stdpaths.cpp @@ -68,6 +68,10 @@ static const wxChar *TRACE_MASK = _T("stdpaths"); #define CSIDL_PROGRAM_FILES 0x0026 #endif +#ifndef CSIDL_PERSONAL + #define CSIDL_PERSONAL 0x0005 +#endif + #ifndef SHGFP_TYPE_CURRENT #define SHGFP_TYPE_CURRENT 0 #endif @@ -75,7 +79,6 @@ static const wxChar *TRACE_MASK = _T("stdpaths"); #ifndef SHGFP_TYPE_DEFAULT #define SHGFP_TYPE_DEFAULT 1 #endif - // ---------------------------------------------------------------------------- // module globals // ---------------------------------------------------------------------------- @@ -262,6 +265,11 @@ wxString wxStandardPaths::GetAppDir() return fn.GetPath(); } +wxString wxStandardPaths::GetDocumentsDir() const +{ + return DoGetDirectory(CSIDL_PERSONAL); +} + // ---------------------------------------------------------------------------- // public functions // ----------------------------------------------------------------------------