diff options
author | Simon Clitherow <aphex@nildram.co.uk> | 2003-08-13 00:37:45 +0400 |
---|---|---|
committer | Simon Clitherow <aphex@nildram.co.uk> | 2003-08-13 00:37:45 +0400 |
commit | 80f3d5863e92308ed6267d82c13d9aaf62938fc9 (patch) | |
tree | d7993ea3dae6d32ae1c4eec2d8fe57ac586bbb38 /source | |
parent | 776374f38b3ccf386869e7385f57c3e8c935b42c (diff) |
- Transition period for Windows... Part 2! :)v2.28a
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenlib/intern/util.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/source/blender/blenlib/intern/util.c b/source/blender/blenlib/intern/util.c index 667b516decb..7304f2e970c 100644 --- a/source/blender/blenlib/intern/util.c +++ b/source/blender/blenlib/intern/util.c @@ -491,18 +491,30 @@ 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/"); - return(dir); + //strcat(dir,"/.blender/"); + strcpy(tmpdir,dir); + strcat(tmpdir,"/.blender/.B.blend"); + if (BLI_exists(tmpdir)) + { + strcat(dir,"/.blender/"); + return(dir); + } } /* |