From 003e2777de2c3050887b71d00789902707d25f47 Mon Sep 17 00:00:00 2001 From: doylet Date: Mon, 25 Mar 2024 16:16:13 +1100 Subject: [PATCH] Fix file move never succeeding --- dqn_os_posix.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/dqn_os_posix.cpp b/dqn_os_posix.cpp index 65d05e7..a2387ba 100644 --- a/dqn_os_posix.cpp +++ b/dqn_os_posix.cpp @@ -366,6 +366,7 @@ DQN_API bool Dqn_OS_MoveFile(Dqn_Str8 src, Dqn_Str8 dest, bool overwrite, Dqn_Er } if (file_moved) { + result = true; int unlink_result = unlink(src.data); if (unlink_result == -1) { int error_code = errno;