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:
authorAndrea Weikert <elubie@gmx.net>2010-03-31 22:02:56 +0400
committerAndrea Weikert <elubie@gmx.net>2010-03-31 22:02:56 +0400
commit3c6a0274b94709e4b9767de5054c8a5402a97db3 (patch)
tree3a549c601decdcbbd97d3ae5c8d2fda87031febb /source/blender/blenlib/intern
parentd7b2f685f05274150aad7b658df6778de13f21ce (diff)
cleanup
* removed code that could lead to Blender writing in the Windows directory - is very old cruft and doesn't work on recent versions of Windows anymore and rightly so :)
Diffstat (limited to 'source/blender/blenlib/intern')
-rw-r--r--source/blender/blenlib/intern/path_util.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/source/blender/blenlib/intern/path_util.c b/source/blender/blenlib/intern/path_util.c
index f630ba30a68..1fe847636bd 100644
--- a/source/blender/blenlib/intern/path_util.c
+++ b/source/blender/blenlib/intern/path_util.c
@@ -791,34 +791,6 @@ char *BLI_gethome(void) {
}
}
}
-#if 0
- ret = getenv("USERPROFILE");
- if (ret) {
- if (BLI_exists(ret)) { /* from fop, also below... */
- sprintf(dir, "%s\\Application Data\\Blender Foundation\\Blender", ret);
- BLI_recurdir_fileops(dir);
- if (BLI_exists(dir)) {
- strcat(dir,"\\.blender");
- if(BLI_exists(dir)) return(dir);
- }
- }
- }
-#endif
-
- /*
- Saving in the Windows dir is less than desirable.
- Use as a last resort ONLY! (aphex)
- */
-
- ret = getenv("WINDOWS");
- if (ret) {
- if(BLI_exists(ret)) return ret;
- }
-
- ret = getenv("WINDIR");
- if (ret) {
- if(BLI_exists(ret)) return ret;
- }
return "C:\\Temp"; /* sheesh! bad, bad, bad! (aphex) */
#endif