From 2308856c05f5b9052b124e9de966edc834a8cc15 Mon Sep 17 00:00:00 2001 From: Allen Webster Date: Mon, 6 Feb 2017 10:33:51 -0500 Subject: [PATCH] bug with saving files by name --- 4ed.cpp | 1 - 4ed_file_view.cpp | 7 +++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/4ed.cpp b/4ed.cpp index f12b8ca0..64655324 100644 --- a/4ed.cpp +++ b/4ed.cpp @@ -7,7 +7,6 @@ * */ - // TOP // App Structs diff --git a/4ed_file_view.cpp b/4ed_file_view.cpp index 1cdfe2a0..0f3208f6 100644 --- a/4ed_file_view.cpp +++ b/4ed_file_view.cpp @@ -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){