hedgewars/getdocumentpath.m
author nemo
Wed, 02 Dec 2009 02:29:53 +0000
changeset 2653 4922d5fe5316
parent 2630 079ef82eac75
child 2671 7e0f88013fe8
permissions -rw-r--r--
remove missing ogg

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