forked from bartvdbraak/blender
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 :)
This commit is contained in:
parent
d7b2f685f0
commit
3c6a0274b9
@ -768,6 +768,10 @@
|
|||||||
RelativePath="..\..\..\source\blender\blenlib\BLI_mempool.h"
|
RelativePath="..\..\..\source\blender\blenlib\BLI_mempool.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\..\source\blender\blenlib\BLI_path_util.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\..\..\source\blender\blenlib\BLI_pbvh.h"
|
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) */
|
return "C:\\Temp"; /* sheesh! bad, bad, bad! (aphex) */
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user