- Transition period for Windows... Part 2! :)

This commit is contained in:
Simon Clitherow 2003-08-12 20:37:45 +00:00
parent 776374f38b
commit 80f3d5863e

@ -491,19 +491,31 @@ char *BLI_gethome(void) {
#else /* Windows */
char * ret;
static char dir[512];
char tmpdir[512];
ret = getenv("HOME");
if(ret) {
if (BLI_exists(ret)) return ret;
}
/*
"change-over" period - blender still checks in
old locations, but Ctrl+U now saves in ~/.blender
*/
BLI_getInstallationDir(dir);
if (BLI_exists(dir))
{
//strcat(dir,"/.blender/");
strcpy(tmpdir,dir);
strcat(tmpdir,"/.blender/.B.blend");
if (BLI_exists(tmpdir))
{
strcat(dir,"/.blender/");
return(dir);
}
}
/*
everything below this point to be removed -