- changed sequence for finding HOME on Win32. Sequence is now as

shown at http://www.blender3d.org/cms/Installation_Policy.352.0.html

   Still TODO:  update NSIS installer script to suit the change.
This commit is contained in:
Simon Clitherow
2004-07-11 21:54:18 +00:00
parent 84b399364c
commit c90ffd49e0

View File

@@ -492,11 +492,24 @@ char *BLI_gethome(void) {
static char dir[512];
char tmpdir[512];
/* Check for %HOME% env var */
ret = getenv("HOME");
if(ret) {
sprintf(dir, "%s\.blender", ret);
if (BLI_exists(dir)) return dir;
}
/* else, check install dir (path containing blender.exe) */
BLI_getInstallationDir(dir);
if (BLI_exists(dir))
{
strcat(dir,"/.blender");
if (BLI_exists(dir)) return(dir);
}
/* add user profile support for WIN 2K / NT */
ret = getenv("USERPROFILE");
@@ -511,14 +524,6 @@ char *BLI_gethome(void) {
}
}
BLI_getInstallationDir(dir);
if (BLI_exists(dir))
{
strcat(dir,"/.blender");
if (BLI_exists(dir)) return(dir);
}
/*
Saving in the Windows dir is less than desirable.
Use as a last resort ONLY! (aphex)