From 65c1200fa869c82dc83f04c5bb43d91742669c6a Mon Sep 17 00:00:00 2001 From: havoc Date: Wed, 9 Feb 2011 02:04:03 +0000 Subject: [PATCH] changed the fs_userdir on iOS git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10832 d7cf8633-e32d-0410-b094-e92efae38249 --- fs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fs.c b/fs.c index 871a632a..3cd3b7d9 100644 --- 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) -- 2.39.2