Mercurial > minori
comparison src/sys/osx/filesystem.mm @ 15:cde8f67a7c7d
*: update, megacommit :)
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Tue, 19 Sep 2023 22:36:08 -0400 |
| parents | 5c0397762b53 |
| children | 9c4645100fec |
comparison
equal
deleted
inserted
replaced
| 14:a29c9402faf0 | 15:cde8f67a7c7d |
|---|---|
| 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( | 7 NSArray* strings = NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, true); |
| 8 NSApplicationSupportDirectory, NSUserDomainMask, true); | |
| 9 return std::string([[strings objectAtIndex:0] UTF8String]); | 8 return std::string([[strings objectAtIndex:0] UTF8String]); |
| 10 } | 9 } |
| 11 | 10 |
| 12 } // namespace osx | 11 } // namespace osx |
