hedgewars/getdocumentpath.m
author koda
Sat, 19 Dec 2009 19:37:30 +0000
changeset 2666 2b8c8f16421e
parent 2630 079ef82eac75
child 2671 7e0f88013fe8
permissions -rw-r--r--
update SDLMain.m/.h to latest version rename cNearBlackColor to cNearBlackColorChannels for readability merge tunsetborder.inc in uLandGraphics.pas

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