hedgewars/getdocumentpath.m
author nemo
Sun, 20 Dec 2009 20:35:15 +0000
changeset 2668 d3a85891ae39
parent 2630 079ef82eac75
child 2671 7e0f88013fe8
permissions -rw-r--r--
Updated chinese and taiwanese locales. Need to run the taiwanese ones past my taiwanese coworkers. Changes were extensive.

#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;
}