Missed a tiny bit of detail: actually deleting the file. (#16845)

This commit is contained in:
zoltanvb 2024-08-07 02:03:16 +02:00 committed by GitHub
parent d4cb4953a6
commit cef6da6a03
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);