Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Clitherow <aphex@nildram.co.uk>2005-03-03 23:40:48 +0300
committerSimon Clitherow <aphex@nildram.co.uk>2005-03-03 23:40:48 +0300
commitb2288bca094a7309addc935f86dd1e913e8a6739 (patch)
tree610802b57a4080f5b50427542478c2f7e94ac808
parent894a73590f60630ae374e0780c03e13b6c68d544 (diff)
Applied correct '\\' for file paths on Windows (thanks Elubie!)
-rw-r--r--source/blender/blenlib/intern/util.c8
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);
}
}