示例#1
0
        public static IMpqArchive Open(byte[] data)
        {
            if (data == null) throw new ArgumentNullException("data");

            var archive = new MpqArchive();
            archive.OpenInternal(new MemoryStream(data), true);
            return archive;
        }
示例#2
0
        public static IMpqArchive Open(string path)
        {
            if (path == null) throw new ArgumentNullException("path");

            var archive = new MpqArchive();
            archive.OpenInternal(File.OpenRead(path), true);
            return archive;
        }
示例#3
0
        public static IMpqArchive Open(byte[] data)
        {
            if (data == null)
            {
                throw new ArgumentNullException("data");
            }

            var archive = new MpqArchive();

            archive.OpenInternal(new MemoryStream(data), true);
            return(archive);
        }
示例#4
0
        public static IMpqArchive Open(string path)
        {
            if (path == null)
            {
                throw new ArgumentNullException("path");
            }

            var archive = new MpqArchive();

            archive.OpenInternal(File.OpenRead(path), true);
            return(archive);
        }
示例#5
0
        public static IMpqArchive Open(Stream stream)
        {
            if (stream == null)
            {
                throw new ArgumentNullException("stream");
            }

            var archive = new MpqArchive();

            archive.OpenInternal(stream, false);
            return(archive);
        }
示例#6
0
        public static IMpqArchive Open(Stream stream)
        {
            if (stream == null) throw new ArgumentNullException("stream");

            var archive = new MpqArchive();
            archive.OpenInternal(stream, false);
            return archive;
        }