Fix ReadMapList ignoring file's last modified time (#1891)

This commit is contained in:
clague
2022-12-20 21:26:57 +00:00
committed by GitHub
parent 515df38b72
commit 0d6179299c
+4 -1
View File
@@ -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) || last_time > pMapList->last_modified_time)
{ {
/* Reparse */ /* Reparse */