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
path: root/source
diff options
context:
space:
mode:
authorSimon Clitherow <aphex@nildram.co.uk>2004-01-29 23:30:05 +0300
committerSimon Clitherow <aphex@nildram.co.uk>2004-01-29 23:30:05 +0300
commit6d68c41e6284ee424cfafc29ce8a6d245ceb658d (patch)
tree2ec1e3466add06c1d0c3350c9d9ae3f77a38a51e /source
parent162d5cdc9116f26400828f570d3733c7422b036b (diff)
last minute commit -- saving .b.blend files on Windows for users
who have set a %HOME% environment var now works again. Patch provided by Bill Baxter, plus an additional fix for Win9x. There is still work to be done with this after the 2.32 release...
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenlib/intern/util.c10
-rw-r--r--source/blender/blenloader/intern/writefile.c2
-rw-r--r--source/blender/src/usiblender.c2
3 files changed, 4 insertions, 10 deletions
diff --git a/source/blender/blenlib/intern/util.c b/source/blender/blenlib/intern/util.c
index 49e2cc7f8fb..f100a1fcfc4 100644
--- a/source/blender/blenlib/intern/util.c
+++ b/source/blender/blenlib/intern/util.c
@@ -507,14 +507,8 @@ char *BLI_gethome(void) {
if (BLI_exists(dir))
{
- //strcat(dir,".blender/");
- strcpy(tmpdir,dir);
- strcat(tmpdir,"/.blender/.B.blend");
- if (BLI_exists(tmpdir))
- {
- strcat(dir,"/.blender/");
- return(dir);
- }
+ strcat(dir,"/.blender");
+ if (BLI_exists(dir)) return(dir);
}
/*
diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c
index 25f4fa28f8e..f7cce90ae5e 100644
--- a/source/blender/blenloader/intern/writefile.c
+++ b/source/blender/blenloader/intern/writefile.c
@@ -1608,7 +1608,7 @@ int BLO_write_file(char *dir, int write_flags, char **error_r)
return 0;
}
-#ifdef WIN32
+#if 0
BLI_getInstallationDir(tmpdir);
if(BLI_exists(tmpdir))
diff --git a/source/blender/src/usiblender.c b/source/blender/src/usiblender.c
index 3d8cc8e8c1e..0cc5e05a403 100644
--- a/source/blender/src/usiblender.c
+++ b/source/blender/src/usiblender.c
@@ -420,7 +420,7 @@ void BIF_write_homefile(void)
To be removed at v2.4 or so! ;)
*/
-#ifdef WIN32
+#if 0
char dir[FILE_MAXDIR+FILE_MAXFILE];
BLI_getInstallationDir(dir);