hedgewars/getdocumentpath.m
author koda
Fri, 08 Jan 2010 01:12:51 +0000
changeset 2685 0ba746be5d59
parent 2671 7e0f88013fe8
permissions -rw-r--r--
frontend images by Tiy, first setup of frontend

#import <UIKit/UIKit.h>

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