summaryrefslogtreecommitdiff
path: root/src/PlatformUtils.mm
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2013-05-21 21:45:24 (GMT)
committerMarius Kintel <marius@kintel.net>2013-05-21 21:45:24 (GMT)
commite2772c70b862e3669c3a279f2540d746438ec38d (patch)
treeac2505cacb5289b9e9c217a66ef75a54748a25b0 /src/PlatformUtils.mm
parentf8622005f89c52061f498ab6ec28adfbd332c344 (diff)
Initial Windows implementation of built-in library path. Part of #125
Diffstat (limited to 'src/PlatformUtils.mm')
-rw-r--r--src/PlatformUtils.mm7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/PlatformUtils.mm b/src/PlatformUtils.mm
new file mode 100644
index 0000000..1e2ba43
--- /dev/null
+++ b/src/PlatformUtils.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