bug with saving files by name

master
Allen Webster 2017-02-06 10:33:51 -05:00
parent b1a416609a
commit 2308856c05
2 changed files with 5 additions and 3 deletions

View File

@ -7,7 +7,6 @@
*
*/
// TOP
// App Structs

View File

@ -737,12 +737,15 @@ file_synchronize_times(System_Functions *system, Editing_File *file){
internal b32
save_file_to_name(System_Functions *system, Models *models, Editing_File *file, char *filename){
b32 result = 0;
b32 using_actual_filename = 0;
b32 using_actual_filename = false;
if (!filename){
terminate_with_null(&file->canon.name);
filename = file->canon.name.str;
using_actual_filename = 1;
using_actual_filename = true;
}
else if (match(filename, file->canon.name)){
using_actual_filename = true;
}
if (filename){