- 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,18 +491,30 @@ char *BLI_gethome(void) {
#else /* Windows */ #else /* Windows */
char * ret; char * ret;
static char dir[512]; static char dir[512];
char tmpdir[512];
ret = getenv("HOME"); ret = getenv("HOME");
if(ret) { if(ret) {
if (BLI_exists(ret)) return 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); BLI_getInstallationDir(dir);
if (BLI_exists(dir)) if (BLI_exists(dir))
{ {
strcat(dir,"/.blender/"); //strcat(dir,"/.blender/");
return(dir); strcpy(tmpdir,dir);
strcat(tmpdir,"/.blender/.B.blend");
if (BLI_exists(tmpdir))
{
strcat(dir,"/.blender/");
return(dir);
}
} }
/* /*