hedgewars/getdocumentpath.m
author nemo
Tue, 05 Jan 2010 21:26:38 +0000
changeset 2677 83ad68ceef72
parent 2671 7e0f88013fe8
permissions -rw-r--r--
Non-hacked version of CJK handling. Should switch to CJK rendering only if a particular string needs it, instead of based on locale file.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2630
079ef82eac75 revamped file access and debug display
koda
parents:
diff changeset
     1
#import <UIKit/UIKit.h>
079ef82eac75 revamped file access and debug display
koda
parents:
diff changeset
     2
079ef82eac75 revamped file access and debug display
koda
parents:
diff changeset
     3
const char* get_documents_path() {
079ef82eac75 revamped file access and debug display
koda
parents:
diff changeset
     4
    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
079ef82eac75 revamped file access and debug display
koda
parents:
diff changeset
     5
    NSString *documentsDirectory = [paths objectAtIndex: 0];
2671
7e0f88013fe8 smaller patches, one missing Sky-lowres, IMG_Init and Mix_Init (might require newer libraries), updates to SDL bindings, code cleanup, new compile flags
koda
parents: 2630
diff changeset
     6
    return [documentsDirectory UTF8String];
2630
079ef82eac75 revamped file access and debug display
koda
parents:
diff changeset
     7
}