From: havoc Date: Wed, 9 Feb 2011 02:04:03 +0000 (+0000) Subject: changed the fs_userdir on iOS X-Git-Tag: xonotic-v0.5.0~438^2~9 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=65c1200fa869c82dc83f04c5bb43d91742669c6a;p=xonotic%2Fdarkplaces.git changed the fs_userdir on iOS git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10832 d7cf8633-e32d-0410-b094-e92efae38249 --- 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)