mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-25 15:15:40 +00:00
GameDatabase: Fix cache not invalidating when out-of-date
This commit is contained in:
parent
a017806c6e
commit
6aa2e9017b
|
@ -542,6 +542,12 @@ bool GameDatabase::LoadFromCache()
|
|||
return false;
|
||||
}
|
||||
|
||||
if (gamedb_ts != file_gamedb_ts || gamesettings_ts != file_gamesettings_ts || compat_ts != file_compat_ts)
|
||||
{
|
||||
Log_DevPrintf("Cache is out of date, recreating.");
|
||||
return false;
|
||||
}
|
||||
|
||||
s_entries.reserve(num_entries);
|
||||
|
||||
for (u32 i = 0; i < num_entries; i++)
|
||||
|
|
Loading…
Reference in a new issue