* 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 :)
This commit is contained in:
Andrea Weikert 2010-03-31 18:02:56 +00:00
parent d7b2f685f0
commit 3c6a0274b9
2 changed files with 4 additions and 28 deletions

@ -768,6 +768,10 @@
RelativePath="..\..\..\source\blender\blenlib\BLI_mempool.h"
>
</File>
<File
RelativePath="..\..\..\source\blender\blenlib\BLI_path_util.h"
>
</File>
<File
RelativePath="..\..\..\source\blender\blenlib\BLI_pbvh.h"
>

@ -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