From 776374f38b3ccf386869e7385f57c3e8c935b42c Mon Sep 17 00:00:00 2001 From: Simon Clitherow Date: Tue, 12 Aug 2003 20:37:14 +0000 Subject: - Transition period for Windows... Ctrl+U now saves in ~/.blender, but we still check old locations to avoid people from losing settings! :) This does not affect any other platform. --- source/blender/src/usiblender.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/source/blender/src/usiblender.c b/source/blender/src/usiblender.c index 935bb2e65fa..57120f66b95 100644 --- a/source/blender/src/usiblender.c +++ b/source/blender/src/usiblender.c @@ -416,7 +416,21 @@ void BIF_write_homefile(void) char *err, tstr[FILE_MAXDIR+FILE_MAXFILE]; int write_flags; + /* "change-over" period for Windows - Ctrl+U now saves in ~/.blender, + but blender still checks the old locations. + To be removed at v2.4 or so! ;) + */ + +#ifdef WIN32 + char dir[FILE_MAXDIR+FILE_MAXFILE]; + BLI_getInstallationDir(dir); + + strcat(dir,"/.blender/"); + + BLI_make_file_string("/", tstr, dir, ".B.blend"); +#else BLI_make_file_string("/", tstr, BLI_gethome(), ".B.blend"); +#endif /* force save as regular blend file */ write_flags = G.fileflags & ~(G_FILE_COMPRESS | G_FILE_LOCK | G_FILE_SIGN); -- cgit v1.2.3