hedgewars/getdocumentpath.m
author koda
Sun, 03 Jan 2010 15:40:41 +0000
changeset 2671 7e0f88013fe8
parent 2630 079ef82eac75
permissions -rw-r--r--
smaller patches, one missing Sky-lowres, IMG_Init and Mix_Init (might require newer libraries), updates to SDL bindings, code cleanup, new compile flags

#import <UIKit/UIKit.h>

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