last minute commit -- saving .b.blend files on Windows for users
who have set a %HOME% environment var now works again. Patch provided by Bill Baxter, plus an additional fix for Win9x. There is still work to be done with this after the 2.32 release...
This commit is contained in:
@@ -507,14 +507,8 @@ char *BLI_gethome(void) {
|
||||
|
||||
if (BLI_exists(dir))
|
||||
{
|
||||
//strcat(dir,".blender/");
|
||||
strcpy(tmpdir,dir);
|
||||
strcat(tmpdir,"/.blender/.B.blend");
|
||||
if (BLI_exists(tmpdir))
|
||||
{
|
||||
strcat(dir,"/.blender/");
|
||||
return(dir);
|
||||
}
|
||||
strcat(dir,"/.blender");
|
||||
if (BLI_exists(dir)) return(dir);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -1608,7 +1608,7 @@ int BLO_write_file(char *dir, int write_flags, char **error_r)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef WIN32
|
||||
#if 0
|
||||
BLI_getInstallationDir(tmpdir);
|
||||
|
||||
if(BLI_exists(tmpdir))
|
||||
|
||||
@@ -420,7 +420,7 @@ void BIF_write_homefile(void)
|
||||
To be removed at v2.4 or so! ;)
|
||||
*/
|
||||
|
||||
#ifdef WIN32
|
||||
#if 0
|
||||
char dir[FILE_MAXDIR+FILE_MAXFILE];
|
||||
BLI_getInstallationDir(dir);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user