public bool AddArchive(string file) { MpqArchive a = new MpqArchive(GameDir + file, 0, OpenArchiveFlags.READ_ONLY); if (a.IsOpen) { archives.Add(a); Console.WriteLine("Add archive: {0}", file); return(true); } return(false); }
public bool AddArchive(string file) { Console.WriteLine("Adding archive: {0}", file); MpqArchive a = new MpqArchive(GameDir + file, 0, OpenArchiveFlags.READ_ONLY); if (a.IsOpen) { archives.Add(a); Console.WriteLine("Added archive: {0}", file); return true; } Console.WriteLine("Failed to add archive: {0}", file); return false; }
public MpqFile(MpqArchive a, IntPtr h) { archive = a; handle = h; }