annotate src/sys/osx/filesystem.mm @ 7:07a9095eaeed
Update
Refactored some code, moved some around
author |
Paper <mrpapersonic@gmail.com> |
date |
Thu, 24 Aug 2023 23:11:38 -0400 |
parents |
51ae25154b70 |
children |
5c0397762b53 |
rev |
line source |
5
|
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 } |