void ExtractModern() { if (jar162 == null) { return; } using (Stream src = new MemoryStream(jar162)) { // Grab animations and snow animsBmp = Platform.CreateBmp(512, 16); reader.SelectZipEntry = SelectZipEntry_Modern; reader.ProcessZipEntry = ProcessZipEntry_Modern; reader.Extract(src); if (!filenames.Contains("animations.png")) { writer.WriteNewImage(animsBmp, "animations.png"); } if (!filenames.Contains("animations.txt")) { writer.WriteNewString(animationsTxt, "animations.txt"); } animsBmp.Dispose(); } }
void ExtractModern() { if (jar162 == null) { return; } using (Stream src = new MemoryStream(jar162)) { // Grab animations and snow animBitmap = new Bitmap(1024, 64, PixelFormat.Format32bppArgb); reader.ShouldProcessZipEntry = ShouldProcessZipEntry_Modern; reader.ProcessZipEntry = ProcessZipEntry_Modern; reader.Extract(src); if (!existing.Contains("animations.png")) { writer.WriteNewImage(animBitmap, "animations.png"); } if (!existing.Contains("animations.txt")) { writer.WriteNewString(animationsTxt, "animations.txt"); } animBitmap.Dispose(); } }