From c2b204e810f85cda39d49c7e25148576ddeded9a Mon Sep 17 00:00:00 2001 From: clague <93119153+clague@users.noreply.github.com> Date: Wed, 21 Dec 2022 05:26:57 +0800 Subject: [PATCH] Fix ReadMapList ignoring file's last modified time (#1891) (cherry picked from commit 0d6179299ce2bd637af46e98ea976ff07d6c7f1f) --- core/logic/smn_maplists.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/logic/smn_maplists.cpp b/core/logic/smn_maplists.cpp index 9d39d2c5..2a1e1f17 100644 --- a/core/logic/smn_maplists.cpp +++ b/core/logic/smn_maplists.cpp @@ -592,7 +592,10 @@ private: } } - if (!libsys->FileTime(pMapList->path, FileTime_LastChange, &last_time) + char realpath[PLATFORM_MAX_PATH]; + g_pSM->BuildPath(Path_Game, realpath, sizeof(realpath), "%s", pMapList->path); + + if (!libsys->FileTime(realpath, FileTime_LastChange, &last_time) || last_time > pMapList->last_modified_time) { /* Reparse */