X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/744b73167b959b4084c4a9a746cd2e92e3d27beb..a43a9e5521440dbb28037646ed4a07125c8823a9:/src/msw/stdpaths.cpp?ds=sidebyside diff --git a/src/msw/stdpaths.cpp b/src/msw/stdpaths.cpp index 37c0c9748a..e8340f1a26 100644 --- a/src/msw/stdpaths.cpp +++ b/src/msw/stdpaths.cpp @@ -250,17 +250,17 @@ wxString wxStandardPaths::GetAppDir() { wxFileName fn(wxGetFullModuleName()); - // allow running the apps directly from build directory in debug builds -#ifdef __WXDEBUG__ + // allow running the apps directly from build directory in MSVC debug builds +#ifdef _DEBUG wxString lastdir; if ( fn.GetDirCount() ) { lastdir = fn.GetDirs().Last(); lastdir.MakeLower(); - if ( lastdir.Matches(_T("debug*")) || lastdir.Matches(_T("vc_msw*")) ) + if ( lastdir.Matches(_T("debug*")) || lastdir.Matches(_T("vc*msw*")) ) fn.RemoveLastDir(); } -#endif // __WXDEBUG__ +#endif // _DEBUG return fn.GetPath(); } @@ -281,7 +281,7 @@ wxString wxStandardPaths::GetExecutablePath() const wxString wxStandardPaths::GetConfigDir() const { - return AppendAppName(DoGetDirectory(CSIDL_COMMON_APPDATA)); + return AppendAppInfo(DoGetDirectory(CSIDL_COMMON_APPDATA)); } wxString wxStandardPaths::GetUserConfigDir() const @@ -298,12 +298,12 @@ wxString wxStandardPaths::GetDataDir() const wxString wxStandardPaths::GetUserDataDir() const { - return AppendAppName(GetUserConfigDir()); + return AppendAppInfo(GetUserConfigDir()); } wxString wxStandardPaths::GetUserLocalDataDir() const { - return AppendAppName(DoGetDirectory(CSIDL_LOCAL_APPDATA)); + return AppendAppInfo(DoGetDirectory(CSIDL_LOCAL_APPDATA)); } wxString wxStandardPaths::GetPluginsDir() const