hedgewars/getdocumentpath.m
author koda
Sun, 03 Jan 2010 22:58:19 +0000
changeset 2674 2fce032f2f95
parent 2671 7e0f88013fe8
permissions -rw-r--r--
lupdate + Palewolf's updated spanish translation + other patches of mine

#import <UIKit/UIKit.h>

const char* get_documents_path() {
    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
    NSString *documentsDirectory = [paths objectAtIndex: 0];
    return [documentsDirectory UTF8String];
}