changed the fs_userdir on iOS
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 9 Feb 2011 02:04:03 +0000 (02:04 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 9 Feb 2011 02:04:03 +0000 (02:04 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10832 d7cf8633-e32d-0410-b094-e92efae38249

fs.c

diff --git a/fs.c b/fs.c
index 871a632..3cd3b7d 100644 (file)
--- a/fs.c
+++ b/fs.c
@@ -1710,7 +1710,9 @@ void FS_Init (void)
        *fs_gamedir = 0;
 
 #ifdef __IPHONEOS__
-       // FIXME: set fs_userdir to the documents folder
+       // fs_basedir is "" by default, to utilize this you can simply add your gamedir to the Resources in xcode
+       // fs_userdir stores configurations to the Documents folder of the app
+       strlcpy(fs_userdir, "../Documents/", sizeof(fs_userdir));
 #else
        // Add the personal game directory
        if((i = COM_CheckParm("-userdir")) && i < com_argc - 1)