hedgewars/getdocumentpath.m
author koda
Fri, 08 Jan 2010 03:52:44 +0000
changeset 2688 174c94b8ea72
parent 2671 7e0f88013fe8
permissions -rw-r--r--
move all sdl source files in a proper directory remove hackish code to get a window up, now it should be quite clean

#import <UIKit/UIKit.h>

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