private static void ReadAnimsBG(GFPackage.Entry File, BinaryReader Reader, GFMotionPack MotPack) { if (File.Length < 0x80) { return; } Reader.BaseStream.Seek(File.Address, SeekOrigin.Begin); GFPackage.Header Header = GFPackage.GetPackageHeader(Reader.BaseStream); foreach (GFPackage.Entry Entry in Header.Entries) { if (Entry.Length < 4) { continue; } Reader.BaseStream.Seek(Entry.Address, SeekOrigin.Begin); uint MagicNum = Reader.ReadUInt32(); if (MagicNum == GFMotionConstant) { Reader.BaseStream.Seek(-4, SeekOrigin.Current); MotPack.Add(new GFMotion(Reader, MotPack.Count)); } } }
private static void ReadAnimsBG(GFPackage.Entry file, BinaryReader reader, GFMotionPack motPack) { if (file.Length < 0x80) { return; } reader.BaseStream.Seek(file.Address, SeekOrigin.Begin); var header = GFPackage.GetPackageHeader(reader.BaseStream); foreach (var entry in header.Entries) { if (entry.Length < 4) { continue; } reader.BaseStream.Seek(entry.Address, SeekOrigin.Begin); var magicNum = reader.ReadUInt32(); if (magicNum == GFMotionConstant) { reader.BaseStream.Seek(-4, SeekOrigin.Current); motPack.Add(new GFMotion(reader, motPack.Count)); } } }