Пример #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;
 }