Use the file modified time, not 0. This change requires default alignment.

This commit is contained in:
Scott Ludwig 2016-01-01 13:55:45 -08:00
parent b0285b45c6
commit 2fd46433f2

View File

@ -196,7 +196,7 @@ bool HostGetSaveGameName(int nGame, char *psz, int cb, Date *pdate, int *pnHours
if (stat(szPath, &st) > 0) {
return false;
}
time_t tim = 0;
time_t tim = st.st_mtimespec.tv_sec;
struct tm *ptm = localtime(&tim);
*pnHours24 = ptm->tm_hour;
*pnMinutes = ptm->tm_min;