hedgewars/getdocumentpath.m
author nemo
Thu, 07 Jan 2010 16:18:32 +0000
changeset 2681 dcbb5e98afc7
parent 2671 7e0f88013fe8
permissions -rw-r--r--
Drop the LongInt conversion, strip the two tests that are too large

#import <UIKit/UIKit.h>

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