public void ImportPSA(string path) { data = new PSAData(); FileStream file = new FileStream(path, FileMode.Open, FileAccess.Read); do { ChunkHeader h = ReadHeader(file); switch (h.name) { case "ANIMHEAD": break; case "BONENAMES": ReadBones(file, h); break; case "ANIMINFO": ReadAnimInfo(file, h); break; case "ANIMKEYS": ReadAnimKeys(file, h); break; default: file.Seek(h.size * h.count, SeekOrigin.Current); break; } } while (file.Position < file.Length); }