(UpdateFileTable): check added file for existence.

This commit is contained in:
morkt 2014-08-03 10:47:34 +04:00
parent 931d76db04
commit ad9fc13068

View File

@ -251,6 +251,8 @@ namespace GameRes.Formats
if (table.TryGetValue (id, out existing) && !(existing is AmiEntry)) if (table.TryGetValue (id, out existing) && !(existing is AmiEntry))
{ {
var file_new = new FileInfo (entry.Name); var file_new = new FileInfo (entry.Name);
if (!file_new.Exists)
continue;
var file_old = new FileInfo (existing.Name); var file_old = new FileInfo (existing.Name);
if (file_new.LastWriteTime <= file_old.LastWriteTime) if (file_new.LastWriteTime <= file_old.LastWriteTime)
continue; continue;