diff options
author | Simon Clitherow <aphex@nildram.co.uk> | 2004-05-07 01:40:38 +0400 |
---|---|---|
committer | Simon Clitherow <aphex@nildram.co.uk> | 2004-05-07 01:40:38 +0400 |
commit | 9936d283824c77246e3dcefb214acb6c76d6fa0d (patch) | |
tree | 44de0acb28feb9c2b98677a1e958c09320909649 /source | |
parent | 8d18aade3f69dba665794fadbbd9014ca364bf82 (diff) |
- switched a strcat and strcpy pair... doh! (well spotted b-ix!)
- appended "./blender" to %HOME% return for Win32. Is consistant now
with the other returns for Win.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenlib/intern/util.c | 5 | ||||
-rw-r--r-- | source/blender/src/language.c | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/blenlib/intern/util.c b/source/blender/blenlib/intern/util.c index 7c3d0e8abe1..9c55f617e56 100644 --- a/source/blender/blenlib/intern/util.c +++ b/source/blender/blenlib/intern/util.c @@ -495,7 +495,10 @@ char *BLI_gethome(void) { ret = getenv("HOME"); if(ret) { - if (BLI_exists(ret)) return ret; + if (BLI_exists(ret)){ + strcat(ret,"\.blender"); + return ret; + } } /* add user profile support for WIN 2K / NT */ diff --git a/source/blender/src/language.c b/source/blender/src/language.c index 54a7e4dffb1..f7af2b61df3 100644 --- a/source/blender/src/language.c +++ b/source/blender/src/language.c @@ -351,8 +351,8 @@ int read_languagefile(void) strcat(name, "/Contents/Resources/.Blanguages"); #elif defined (WIN32) /* Check the installation dir in Windows */ - strcat(name, BLI_gethome()); - strcpy(name,"/.Blanguages"); + strcpy(name, BLI_gethome()); + strcat(name,"/.Blanguages"); #else strcpy(name, ".blender/.Blanguages"); #endif |