diff options
author | Marius Kintel <marius@kintel.net> | 2013-05-21 22:02:16 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2013-05-21 22:02:16 (GMT) |
commit | 13e4bcd50e324d5228ce920d1fc84aa3ba8d6e5e (patch) | |
tree | c837071ee025839a11596633b7e511a607994048 /src/PlatformUtils-mac.mm | |
parent | e2772c70b862e3669c3a279f2540d746438ec38d (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.mm | 7 |
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]); +} |