summaryrefslogtreecommitdiff
path: root/src/PlatformUtils-mac.mm
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2013-05-21 22:02:16 (GMT)
committerMarius Kintel <marius@kintel.net>2013-05-21 22:02:16 (GMT)
commit13e4bcd50e324d5228ce920d1fc84aa3ba8d6e5e (patch)
treec837071ee025839a11596633b7e511a607994048 /src/PlatformUtils-mac.mm
parente2772c70b862e3669c3a279f2540d746438ec38d (diff)
Added meny entry for disclosing the library path. Part of #125
Diffstat (limited to 'src/PlatformUtils-mac.mm')
-rw-r--r--src/PlatformUtils-mac.mm7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/PlatformUtils-mac.mm b/src/PlatformUtils-mac.mm
new file mode 100644
index 0000000..1e2ba43
--- /dev/null
+++ b/src/PlatformUtils-mac.mm
@@ -0,0 +1,7 @@
+#include "PlatformUtils.h"
+#import <Foundation/Foundation.h>
+
+std::string PlatformUtils::documentsPath()
+{
+ return std::string([[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject] UTF8String]);
+}
contact: Jan Huwald // Impressum