summaryrefslogtreecommitdiff
path: root/src/PlatformUtils.mm
diff options
context:
space:
mode:
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