author | unc0rr |
Mon, 14 Dec 2009 20:23:51 +0000 | |
changeset 2662 | 12dc696f1c81 |
parent 2630 | 079ef82eac75 |
child 2671 | 7e0f88013fe8 |
permissions | -rw-r--r-- |
2630 | 1 |
#import <UIKit/UIKit.h> |
2 |
||
3 |
const char* get_documents_path() { |
|
4 |
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); |
|
5 |
NSString *documentsDirectory = [paths objectAtIndex: 0]; |
|
6 |
const char* path = [documentsDirectory UTF8String]; |
|
7 |
return path; |
|
8 |
} |