/// <summary> /// Loads all archives into memory. /// </summary> private static void LoadAllArchives() { m_StillLoading.Reset(); foreach (string Path in m_FAR3Paths) { //This should be ignored. if (!Path.Contains("packingslips.dat")) { FAR3Archive Archive = new FAR3Archive(Path); if(Archive.ReadArchive(false)) m_FAR3Archives.Add(Archive); } } if(OnThirtyThreePercentCompleted != null) OnThirtyThreePercentCompleted(); foreach (string Path in m_FAR1Paths) { FAR1Archive Archive = new FAR1Archive(Path); Archive.ReadArchive(false); m_FAR1Archives.Add(Archive); } if(OnSixtysixPercentCompleted != null) OnSixtysixPercentCompleted(); foreach (string Path in m_DBPFPaths) { DBPFArchive Archive = new DBPFArchive(Path); if(Archive.ReadArchive(false)) m_DBPFArchives.Add(Archive); } m_StillLoading.Set(); if (OnHundredPercentCompleted != null) OnHundredPercentCompleted(); }