+static int FS_ChooseUserDir(userdirmode_t userdirmode, char *userdir, size_t userdirsize)
{
#if defined(__IPHONEOS__)
if (userdirmode == USERDIRMODE_HOME)
{
#if defined(__IPHONEOS__)
if (userdirmode == USERDIRMODE_HOME)
@@ -1763,7+1759,8 @@ int FS_ChooseUserDir(userdirmode_t userdirmode, char *userdir, size_t userdirsiz
wchar_t *savedgamesdirw;
char savedgamesdir[MAX_OSPATH];
int fd;
wchar_t *savedgamesdirw;
char savedgamesdir[MAX_OSPATH];
int fd;
-
+ char vabuf[1024];
+
userdir[0] = 0;
switch(userdirmode)
{
userdir[0] = 0;
switch(userdirmode)
{
@@ -1836,6+1833,7 @@ int FS_ChooseUserDir(userdirmode_t userdirmode, char *userdir, size_t userdirsiz
#else
int fd;
char *homedir;
#else
int fd;
char *homedir;
+ char vabuf[1024];
userdir[0] = 0;
switch(userdirmode)
{
userdir[0] = 0;
switch(userdirmode)
{
@@ -1881,19+1879,31 @@ int FS_ChooseUserDir(userdirmode_t userdirmode, char *userdir, size_t userdirsiz
if (userdirmode == USERDIRMODE_NOHOME && strcmp(gamedirname1, "id1"))
return 0; // don't bother checking if the basedir folder is writable, it's annoying... unless it is Quake on Windows where NOHOME is the default preferred and we have to check for an error case
#endif
if (userdirmode == USERDIRMODE_NOHOME && strcmp(gamedirname1, "id1"))
return 0; // don't bother checking if the basedir folder is writable, it's annoying... unless it is Quake on Windows where NOHOME is the default preferred and we have to check for an error case
#endif
+
// see if we can write to this path (note: won't create path)
// see if we can write to this path (note: won't create path)