diff options
author | Oystein Eftevaag | 2009-02-16 23:21:18 +0000 |
---|---|---|
committer | Oystein Eftevaag | 2009-02-16 23:21:18 +0000 |
commit | d61b83814b9295d6fc4192344a96422fed2fe07d (patch) | |
tree | ba58dba3d0f8f5c29a94677a3608914cd450eaff /backends/platform/iphone/iphone_video.m | |
parent | 6ec40aa9f64101c82daa621610bb9d66a85b4001 (diff) | |
download | scummvm-rg350-d61b83814b9295d6fc4192344a96422fed2fe07d.tar.gz scummvm-rg350-d61b83814b9295d6fc4192344a96422fed2fe07d.tar.bz2 scummvm-rg350-d61b83814b9295d6fc4192344a96422fed2fe07d.zip |
Updated the iphone xcode project to include dependency libs, and fixed config/savegame paths
svn-id: r38386
Diffstat (limited to 'backends/platform/iphone/iphone_video.m')
-rw-r--r-- | backends/platform/iphone/iphone_video.m | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/backends/platform/iphone/iphone_video.m b/backends/platform/iphone/iphone_video.m index ab85d2868a..d8919ec2b4 100644 --- a/backends/platform/iphone/iphone_video.m +++ b/backends/platform/iphone/iphone_video.m @@ -87,6 +87,12 @@ bool iPhone_fetchEvent(int *outEvent, float *outX, float *outY) { return true; } +const char* iPhone_getDocumentsDir() { + NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); + NSString *documentsDirectory = [paths objectAtIndex:0]; + return [documentsDirectory UTF8String]; +} + bool getLocalMouseCoords(CGPoint *point) { if (point->x < _screenRect.origin.x || point->x >= _screenRect.origin.x + _screenRect.size.width || point->y < _screenRect.origin.y || point->y >= _screenRect.origin.y + _screenRect.size.height) { |