hedgewars/getdocumentpath.m
author koda
Thu, 07 Jan 2010 22:49:25 +0000
changeset 2683 bad2a30d5d6c
parent 2671 7e0f88013fe8
permissions -rw-r--r--
touch input: reset zoom, attack button

#import <UIKit/UIKit.h>

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