コード例 #1
0
ファイル: PSAFile.cs プロジェクト: ijedi1234/ME3Explorer
        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);
        }
コード例 #2
0
ファイル: PSAFile.cs プロジェクト: ME3Explorer/ME3Explorer
        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);
        }