]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
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 871a632a97d1b994323ac423b6dcccfbc7b667ce..3cd3b7d9ba19bbd0b58f2ed9e65a4c8ce762edb1 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)