示例#1
0
        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);
        }
示例#2
0
        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;
        }
示例#3
0
 public MpqFile(MpqArchive a, IntPtr h)
 {
     archive = a;
     handle = h;
 }
示例#4
0
 public MpqFile(MpqArchive a, IntPtr h)
 {
     archive = a;
     handle  = h;
 }