diff options
author | Simon Clitherow <aphex@nildram.co.uk> | 2005-03-03 23:40:48 +0300 |
---|---|---|
committer | Simon Clitherow <aphex@nildram.co.uk> | 2005-03-03 23:40:48 +0300 |
commit | b2288bca094a7309addc935f86dd1e913e8a6739 (patch) | |
tree | 610802b57a4080f5b50427542478c2f7e94ac808 /source | |
parent | 894a73590f60630ae374e0780c03e13b6c68d544 (diff) |
Applied correct '\\' for file paths on Windows (thanks Elubie!)
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenlib/intern/util.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenlib/intern/util.c b/source/blender/blenlib/intern/util.c index ea666be3e45..af26aea70e1 100644 --- a/source/blender/blenlib/intern/util.c +++ b/source/blender/blenlib/intern/util.c @@ -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); } } |