diff options
author | Simon Clitherow <aphex@nildram.co.uk> | 2003-08-13 00:37:14 +0400 |
---|---|---|
committer | Simon Clitherow <aphex@nildram.co.uk> | 2003-08-13 00:37:14 +0400 |
commit | 776374f38b3ccf386869e7385f57c3e8c935b42c (patch) | |
tree | c9c981e6e04c98f90eca37191cf2780f82422802 /source | |
parent | 6ef8d0a0ee0767d7dce3afa49b770b965a55f808 (diff) |
- 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.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/src/usiblender.c | 14 |
1 files changed, 14 insertions, 0 deletions
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); |