Mercurial > minori
comparison src/sys/osx/filesystem.mm @ 5:51ae25154b70
Fix OS X support code
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Sat, 12 Aug 2023 13:10:34 -0400 |
| parents | |
| children | 5c0397762b53 |
comparison
equal
deleted
inserted
replaced
| 4:5af270662505 | 5:51ae25154b70 |
|---|---|
| 1 #include <Cocoa/Cocoa.h> | |
| 2 #include <string> | |
| 3 | |
| 4 namespace osx { | |
| 5 | |
| 6 std::string GetApplicationSupportDirectory() { | |
| 7 NSArray* strings = NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, true); | |
| 8 return std::string([[strings objectAtIndex:0] UTF8String]); | |
| 9 } | |
| 10 | |
| 11 } |
