public static void ArcsDumpTAHEntries(Stream source, ArcsDatabase db, string tahname) { try { TDCGExplorer.SetToolTips("Processing " + Path.GetFileName(tahname)); using (TAHFile tah = new TAHFile(source)) { try { tah.LoadEntries(); } catch (Exception ex) { Debug.WriteLine("Error: " + ex); return; } DateTime datetime = File.GetLastWriteTime(tahname); ArcsTahEntry entry = new ArcsTahEntry(); entry.path = tahname.Substring(arcspath.Length + 1); entry.shortname = Path.GetFileName(tahname).ToLower(); entry.version = (int)tah.Header.Version; entry.id = 0; entry.exist = 1; entry.datetime = datetime; entry.id = db.SetTahEntry(entry); ArcsDumpTahFilesEntries(db, entry, tah); } } catch (Exception ex) { Debug.WriteLine("Error: " + ex); return; } }