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

(cherry picked from commit 0d6179299c)
This commit is contained in:
clague 2022-12-21 05:26:57 +08:00 committed by Your Name
parent 24c92c021c
commit c2b204e810

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)
{
/* Reparse */