blob: 9fa86aaafddd8ef8ee4fbbd95154e6c56fbf5ca0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#import <Foundation/Foundation.h>
/* #import <Cocoa/Cocoa.h> */
void osx_get_user_config_directory(char path[512])
{
@autoreleasepool {
NSArray *paths = NSSearchPathForDirectoriesInDomains(
NSApplicationSupportDirectory, NSUserDomainMask, YES);
NSString *dir = paths[0];
strncpy(path, dir.UTF8String, 512);
path[511] = 0;
}
}
|