Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_files.c
| Context not available. | |||||
| #include <string.h> | #include <string.h> | ||||
| #include <errno.h> | #include <errno.h> | ||||
| #include <time.h> /* Time can be printed with saved message. */ | |||||
| #include "zlib.h" /* wm_read_exotic() */ | #include "zlib.h" /* wm_read_exotic() */ | ||||
| #ifdef WIN32 | #ifdef WIN32 | ||||
| Context not available. | |||||
| RNA_string_get(op->ptr, "filepath", path); | RNA_string_get(op->ptr, "filepath", path); | ||||
| ret = wm_save_as_mainfile_exec(C, op); | ret = wm_save_as_mainfile_exec(C, op); | ||||
| /* Without this there is no feedback the file was saved. */ | /* Without this there is no feedback the file was saved. */ | ||||
| BKE_reportf(op->reports, RPT_INFO, "Saved \"%s\"", BLI_path_basename(path)); | time_t t = time(NULL); // get time to print | ||||
| struct tm tm = *localtime(&t); | |||||
| BKE_reportf(op->reports, RPT_INFO, "Saved \"%s\" on %d:%d:%d, %d-%d-%d", BLI_path_basename(path), tm.tm_hour, tm.tm_min, tm.tm_sec, tm.tm_mon + 1, tm.tm_mday, tm.tm_year + 1900); | |||||
| } | } | ||||
| else { | else { | ||||
| WM_event_add_fileselect(C, op); | WM_event_add_fileselect(C, op); | ||||
| Context not available. | |||||