Blender now correctly checks the current dir for /.blender/.Blanguages

on Windows
This commit is contained in:
2003-06-05 18:36:27 +00:00
parent a9ced6d86a
commit 98752e5d92

View File

@@ -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,7 +288,10 @@ int read_languagefile(void) {
strcat(name, "/Contents/Resources/.Blanguages");
#elif defined (WIN32)
/* Check the installation dir in Windows */
BLI_getInstallationDir(name);
result = BLI_getInstallationDir(name);
if (!result)
strcpy(name,"/.blender/.Blanguages");
else
strcat(name,"/.blender/.Blanguages");
#else
strcpy(name, ".blender/.Blanguages");