X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/17af82fb4c8f830f202567259472645c27724c32..2cf3a6d7bef6f20bea35062dd3d4dbf0aec9efb5:/src/mac/corefoundation/stdpaths_cf.cpp?ds=sidebyside diff --git a/src/mac/corefoundation/stdpaths_cf.cpp b/src/mac/corefoundation/stdpaths_cf.cpp index 2b2cf9cba0..d4068cc2fa 100644 --- a/src/mac/corefoundation/stdpaths_cf.cpp +++ b/src/mac/corefoundation/stdpaths_cf.cpp @@ -109,6 +109,7 @@ wxString wxStandardPathsCF::GetFromFunc(wxCFURLRef (*func)(wxCFBundleRef)) const wxString wxStandardPathsCF::GetDocumentsDir() const { +#ifdef __WXMAC__ return wxMacFindFolderNoSeparator ( #if TARGET_API_MAC_OSX @@ -119,6 +120,9 @@ wxString wxStandardPathsCF::GetDocumentsDir() const kDocumentsFolderType, kCreateFolder ); +#else + return wxFileName::GetHomeDir() + wxT("/Documents"); +#endif } // ----------------------------------------------------------------------------