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; }
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; }
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); }
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); }
public static IMpqArchive Open(Stream stream) { if (stream == null) { throw new ArgumentNullException("stream"); } var archive = new MpqArchive(); archive.OpenInternal(stream, false); return(archive); }
public static IMpqArchive Open(Stream stream) { if (stream == null) throw new ArgumentNullException("stream"); var archive = new MpqArchive(); archive.OpenInternal(stream, false); return archive; }