Exemplo n.º 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);
        }
Exemplo n.º 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;
        }
Exemplo n.º 3
0
 public MpqFile(MpqArchive a, IntPtr h)
 {
     archive = a;
     handle = h;
 }
Exemplo n.º 4
0
 public MpqFile(MpqArchive a, IntPtr h)
 {
     archive = a;
     handle  = h;
 }