]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - fs.c
changed the fs_userdir on iOS
[xonotic/darkplaces.git] / 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)