static void ExtractZip(Stream stream, Game game) { Events.RaiseTexturePackChanged(); if (game.Graphics.LostContext) { return; } ZipReader reader = new ZipReader(); reader.ProcessZipEntry = ProcessZipEntry; reader.Extract(stream); }
public void Extract(Stream stream, Game game) { this.game = game; game.Events.RaiseTexturePackChanged(); if (game.Graphics.LostContext) { return; } ZipReader reader = new ZipReader(); reader.ShouldProcessZipEntry = (f) => true; reader.ProcessZipEntry = ProcessZipEntry; reader.Extract(stream); }