From cef6da6a035ac3149234b3ac087931b6a34c7104 Mon Sep 17 00:00:00 2001 From: zoltanvb <101990835+zoltanvb@users.noreply.github.com> Date: Wed, 7 Aug 2024 02:03:16 +0200 Subject: [PATCH] Missed a tiny bit of detail: actually deleting the file. (#16845) --- command.c | 1 + 1 file changed, 1 insertion(+) diff --git a/command.c b/command.c index 12593c5314..47c24fe52f 100644 --- a/command.c +++ b/command.c @@ -1564,6 +1564,7 @@ void command_event_set_savestate_garbage_collect( * and delete that one as well. */ i = strlcpy(state_dir,oldest_save,PATH_MAX_LENGTH); strlcpy(state_dir + i,".png",STRLEN_CONST(".png")+1); + filestream_delete(state_dir); } dir_list_free(dir_list);