From: Gilles Depeyrot <gilles_depeyrot@mac.com>
Date: Wed, 11 Jun 2003 18:17:56 +0000 (+0000)
Subject: applied SF patch #752538 to implement wxGetOSDirectory() for Mac
X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2d3441d7e5e3d23fd804212bebccb1532f415430

applied SF patch #752538 to implement wxGetOSDirectory() for Mac


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21047 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---

diff --git a/src/common/filefn.cpp b/src/common/filefn.cpp
index 4ff10b83b0..3e6489ad19 100644
--- a/src/common/filefn.cpp
+++ b/src/common/filefn.cpp
@@ -1633,6 +1633,8 @@ wxString wxGetOSDirectory()
     wxChar buf[256];
     GetWindowsDirectory(buf, 256);
     return wxString(buf);
+#elif defined(__WXMAC__)
+    return wxMacFindFolder(kOnSystemDisk, 'macs', false);
 #else
     return wxEmptyString;
 #endif