Mercurial > minori
comparison src/sys/osx/filesystem.mm @ 9:5c0397762b53
INCOMPLETE: megacommit :)
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Sun, 10 Sep 2023 03:59:16 -0400 |
| parents | 51ae25154b70 |
| children | cde8f67a7c7d |
comparison
equal
deleted
inserted
replaced
| 8:b1f73678ef61 | 9:5c0397762b53 |
|---|---|
| 2 #include <string> | 2 #include <string> |
| 3 | 3 |
| 4 namespace osx { | 4 namespace osx { |
| 5 | 5 |
| 6 std::string GetApplicationSupportDirectory() { | 6 std::string GetApplicationSupportDirectory() { |
| 7 NSArray* strings = NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, true); | 7 NSArray* strings = NSSearchPathForDirectoriesInDomains( |
| 8 NSApplicationSupportDirectory, NSUserDomainMask, true); | |
| 8 return std::string([[strings objectAtIndex:0] UTF8String]); | 9 return std::string([[strings objectAtIndex:0] UTF8String]); |
| 9 } | 10 } |
| 10 | 11 |
| 11 } | 12 } // namespace osx |
