From 98752e5d92d397db14638f6d90af4f95b3b49690 Mon Sep 17 00:00:00 2001 From: Simon Clitherow Date: Thu, 5 Jun 2003 18:36:27 +0000 Subject: [PATCH] Blender now correctly checks the current dir for /.blender/.Blanguages on Windows --- source/blender/src/language.c | 10 ++++++++-- 1 file 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