[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [27906] trunk/blender: cleanup
Andrea Weikert
elubie at gmx.net
Wed Mar 31 20:02:57 CEST 2010
Revision: 27906
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=27906
Author: elubie
Date: 2010-03-31 20:02:56 +0200 (Wed, 31 Mar 2010)
Log Message:
-----------
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 :)
Modified Paths:
--------------
trunk/blender/projectfiles_vc9/blender/blenlib/BLI_blenlib.vcproj
trunk/blender/source/blender/blenlib/intern/path_util.c
Modified: trunk/blender/projectfiles_vc9/blender/blenlib/BLI_blenlib.vcproj
===================================================================
--- trunk/blender/projectfiles_vc9/blender/blenlib/BLI_blenlib.vcproj 2010-03-31 17:46:17 UTC (rev 27905)
+++ trunk/blender/projectfiles_vc9/blender/blenlib/BLI_blenlib.vcproj 2010-03-31 18:02:56 UTC (rev 27906)
@@ -769,6 +769,10 @@
>
</File>
<File
+ RelativePath="..\..\..\source\blender\blenlib\BLI_path_util.h"
+ >
+ </File>
+ <File
RelativePath="..\..\..\source\blender\blenlib\BLI_pbvh.h"
>
</File>
Modified: trunk/blender/source/blender/blenlib/intern/path_util.c
===================================================================
--- trunk/blender/source/blender/blenlib/intern/path_util.c 2010-03-31 17:46:17 UTC (rev 27905)
+++ trunk/blender/source/blender/blenlib/intern/path_util.c 2010-03-31 18:02:56 UTC (rev 27906)
@@ -791,35 +791,7 @@
}
}
}
-#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
}
More information about the Bf-blender-cvs
mailing list