hedgewars/getdocumentpath.m
author nemo
Tue, 08 Dec 2009 17:46:58 +0000
changeset 2658 cd9ab1f5bfdb
parent 2630 079ef82eac75
child 2671 7e0f88013fe8
permissions -rw-r--r--
Restore the plural forms - lupdate-qt4 seems to be behaving now. update the compiled files too

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