X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/90412a12f4c5b1fe8c9f58c60a917aa2653afc43..b24442f84535632e6f63bffb7d1b887a7107d255:/src/mac/corefoundation/stdpaths_cf.cpp diff --git a/src/mac/corefoundation/stdpaths_cf.cpp b/src/mac/corefoundation/stdpaths_cf.cpp index bd254964ad..f8cf48355a 100644 --- a/src/mac/corefoundation/stdpaths_cf.cpp +++ b/src/mac/corefoundation/stdpaths_cf.cpp @@ -151,8 +151,10 @@ wxString wxStandardPathsCF::GetDataDir() const return GetFromFunc(CFBundleCopySharedSupportURL); } +// TODO: implement this using real CoreFoundation API instead of Carbon API wxString wxStandardPathsCF::GetExecutablePath() const { +#ifdef __WXMAC__ ProcessInfoRec processinfo; ProcessSerialNumber procno ; FSSpec fsSpec; @@ -165,6 +167,9 @@ wxString wxStandardPathsCF::GetExecutablePath() const GetProcessInformation( &procno , &processinfo ) ; return wxMacFSSpec2MacFilename(&fsSpec); +#else + return wxStandardPathsBase::GetExecutablePath(); +#endif } wxString wxStandardPathsCF::GetLocalDataDir() const @@ -196,7 +201,7 @@ wxString wxStandardPathsCF::GetResourcesDir() const } wxString -wxStandardPathsCF::GetLocalizedResourcesDir(const wxChar *lang, +wxStandardPathsCF::GetLocalizedResourcesDir(const wxString& lang, ResourceCat category) const { return wxStandardPathsBase::