- fixed 'double-click on blend file' errors on Windows -- INTERNATIONAL stuff now also checks the installation directory for /.blender, etc

- registering .blend files for WinNT/2000/XP now works correctly (settings remain after a reboot).
This commit is contained in:
2003-05-22 18:06:25 +00:00
parent b8f2835ba2
commit d617df4793
6 changed files with 74 additions and 13 deletions

View File

@@ -43,8 +43,6 @@
#include "BKE_utildefines.h"
#endif
#include "BLI_blenlib.h"
#define DOMAIN_NAME "blender"
#define SYSTEM_ENCODING_DEFAULT "UTF-8"
@@ -117,6 +115,13 @@ FTF_TTFont::FTF_TTFont(void)
BLI_make_file_string("/", messagepath, BLI_gethome(), ".blender/locale");
if(BLI_exist(messagepath) == NULL) { // locale not in home dir
#ifdef WIN32
/* message catalogs are stored in the installation dir */
BLI_getInstallationDir(messagepath);
strcat(messagepath, "/.blender/locale");
if(BLI_exist(messagepath) == NULL) {
#endif
#ifdef __APPLE__
/* message catalogs are stored inside the application bundle */
bundlepath = BLI_getbundle();
@@ -129,6 +134,9 @@ FTF_TTFont::FTF_TTFont(void)
if(BLI_exist(messagepath) == NULL) { // locale not in LOCALEDIR
strcpy(messagepath, "message"); // old compatibility as last
}
#ifdef WIN32
}
#endif
#ifdef __APPLE__
}
#endif