changeset 2630 | 079ef82eac75 |
child 2671 | 7e0f88013fe8 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/hedgewars/getdocumentpath.m Fri Nov 20 21:22:05 2009 +0000 @@ -0,0 +1,8 @@ +#import <UIKit/UIKit.h> + +const char* get_documents_path() { + NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); + NSString *documentsDirectory = [paths objectAtIndex: 0]; + const char* path = [documentsDirectory UTF8String]; + return path; +}