Applied correct '\\' for file paths on Windows (thanks Elubie!)

This commit is contained in:
Simon Clitherow 2005-03-03 20:40:48 +00:00
parent 894a73590f
commit b2288bca09

@ -496,7 +496,7 @@ char *BLI_gethome(void) {
ret = getenv("HOME");
if(ret) {
sprintf(dir, "%s\.blender", ret);
sprintf(dir, "%s\\.blender", ret);
if (BLI_exists(dir)) return dir;
}
@ -506,7 +506,7 @@ char *BLI_gethome(void) {
if (BLI_exists(dir))
{
strcat(dir,"/.blender");
strcat(dir,"\\.blender");
if (BLI_exists(dir)) return(dir);
}
@ -515,10 +515,10 @@ char *BLI_gethome(void) {
ret = getenv("USERPROFILE");
if (ret) {
if (BLI_exists(ret)) { /* from fop, also below... */
sprintf(dir, "%s/Application Data/Blender Foundation/Blender", ret);
sprintf(dir, "%s\\Application Data\\Blender Foundation\\Blender", ret);
BLI_recurdir_fileops(dir);
if (BLI_exists(dir)) {
strcat(dir,"/.blender");
strcat(dir,"\\.blender");
if(BLI_exists(dir)) return(dir);
}
}