diff options
author | Nathan Letwory <nathan@letworyinteractive.com> | 2010-07-16 10:49:31 +0400 |
---|---|---|
committer | Nathan Letwory <nathan@letworyinteractive.com> | 2010-07-16 10:49:31 +0400 |
commit | 7ba821cab384f45691bb73bc0712926ae4c819de (patch) | |
tree | 20f1356b2b3ae6f9486a8b0ce35462c83eae301f /source/blender/windowmanager | |
parent | e4e80c4def0fe30ec9285cafde2fd42c5e8c09b6 (diff) |
Add comment about case where autosave can fail on Windows.
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r-- | source/blender/windowmanager/intern/wm_files.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c index 89b8267bb05..fc7bf9b79c7 100644 --- a/source/blender/windowmanager/intern/wm_files.c +++ b/source/blender/windowmanager/intern/wm_files.c @@ -689,6 +689,14 @@ void wm_autosave_location(char *filename) sprintf(pidstr, "%d.blend", abs(getpid())); #ifdef WIN32 + // XXX Need to investigate how to handle default location of '/tmp/' + // This is a relative directory on Windows, and it may be + // found. Example: + // Blender installed on D:\ drive, D:\ drive has D:\tmp\ + // Now, BLI_exists() will find '/tmp/' exists, but + // BLI_make_file_string will create string that has it most likely on C:\ + // through get_default_root(). + // If there is no C:\tmp autosave fails. if (!BLI_exists(U.tempdir)) { savedir = BLI_get_folder_create(BLENDER_USER_AUTOSAVE, NULL); BLI_make_file_string("/", filename, savedir, pidstr); |