[Bf-committers] [patch] To correct the current problems with Window 98
jmsoler at free.fr
jmsoler at free.fr
Thu May 29 21:44:23 CEST 2008
Can't you do something like this :
Index: source/blender/blenlib/intern/util.c
===================================================================
--- source/blender/blenlib/intern/util.c (revision 15049)
+++ source/blender/blenlib/intern/util.c (working copy)
@@ -1226,6 +1226,8 @@
if (BLI_exists(dir)) return(dir);
}
+ ret = getenv("USERPROFILE");
+ if (ret) {
/* add user profile support for WIN 2K / NT */
hResult = SHGetFolderPath(NULL, CSIDL_APPDATA, NULL, SHGFP_TYPE_CURRENT,
appdatapath);
@@ -1254,6 +1256,7 @@
}
}
}
+}
#if 0
ret = getenv("USERPROFILE");
if (ret) {
( PS : is there a reason why the bloc after "/* add user profile..." is repeated
two times ? )
More information about the Bf-committers
mailing list