diff options
author | Simon Clitherow <aphex@nildram.co.uk> | 2003-06-05 22:36:27 +0400 |
---|---|---|
committer | Simon Clitherow <aphex@nildram.co.uk> | 2003-06-05 22:36:27 +0400 |
commit | 98752e5d92d397db14638f6d90af4f95b3b49690 (patch) | |
tree | e25ffe2d50558119bb95e1258f23d428add6ba9b /source/blender/src/language.c | |
parent | a9ced6d86ae70b84eab4a20ac61741d591e43298 (diff) |
Blender now correctly checks the current dir for /.blender/.Blanguages
on Windows
Diffstat (limited to 'source/blender/src/language.c')
-rw-r--r-- | source/blender/src/language.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source/blender/src/language.c b/source/blender/src/language.c index 209a24a5804..245e21c7d77 100644 --- a/source/blender/src/language.c +++ b/source/blender/src/language.c @@ -270,6 +270,9 @@ void puplang_insert_entry(char *line) int read_languagefile(void) { char name[FILE_MAXDIR+FILE_MAXFILE]; LinkNode *l, *lines; +#ifdef WIN32 + int result; +#endif /* .Blanguages */ BLI_make_file_string("/", name, BLI_gethome(), ".Blanguages"); @@ -285,8 +288,11 @@ int read_languagefile(void) { strcat(name, "/Contents/Resources/.Blanguages"); #elif defined (WIN32) /* Check the installation dir in Windows */ - BLI_getInstallationDir(name); - strcat(name,"/.blender/.Blanguages"); + result = BLI_getInstallationDir(name); + if (!result) + strcpy(name,"/.blender/.Blanguages"); + else + strcat(name,"/.blender/.Blanguages"); #else strcpy(name, ".blender/.Blanguages"); #endif |