X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2a6f6231ce9c23f010da1a8579708c6e281df1b3..89c684ef8280e2d91096da2d96ba36e24a1fb917:/src/common/filefn.cpp?ds=inline diff --git a/src/common/filefn.cpp b/src/common/filefn.cpp index 8207942f5e..59a9cd78f0 100644 --- a/src/common/filefn.cpp +++ b/src/common/filefn.cpp @@ -1451,6 +1451,19 @@ bool wxSetWorkingDirectory(const wxString& d) #endif } +// Get the OS directory if appropriate (such as the Windows directory). +// On non-Windows platform, probably just return the empty string. +wxString wxGetOSDirectory() +{ +#ifdef __WINDOWS__ + char buf[256]; + GetWindowsDirectory(buf, 256); + return wxString(buf); +#else + return wxEmptyString; +#endif +} + bool wxEndsWithPathSeparator(const char *pszFileName) { size_t len = Strlen(pszFileName);