From 45d1f8e58b9fff15af4587ef802691d3802bec03 Mon Sep 17 00:00:00 2001 From: Ryan Fleury Date: Wed, 23 Jul 2025 16:24:34 -0700 Subject: [PATCH] clear overwritten path on cfg writes --- src/raddbg/raddbg_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/raddbg/raddbg_core.c b/src/raddbg/raddbg_core.c index defef61b..206f8881 100644 --- a/src/raddbg/raddbg_core.c +++ b/src/raddbg/raddbg_core.c @@ -13426,6 +13426,7 @@ rd_frame(void) } String8 data = str8_list_join(scratch.arena, &strings, 0); B32 temp_write_good = os_write_data_to_file_path(temp_path, data); + B32 old_del_good = (temp_write_good && os_delete_file_at_path(overwritten_path)); B32 old_move_good = (temp_write_good && (!dst_exists || os_move_file_path(overwritten_path, dst_path))); B32 new_move_good = (old_move_good && os_move_file_path(dst_path, temp_path)); if(new_move_good && dst_exists)