hedgewars/getdocumentpath.m
author nemo
Tue, 08 Dec 2009 17:29:32 +0000
changeset 2655 3a4a73893da5
parent 2630 079ef82eac75
child 2671 7e0f88013fe8
permissions -rw-r--r--
Comment out the unused teams to avoid translators working on unused translations.

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