SPC file path fixes

This commit is contained in:
KillzXGaming 2019-07-21 10:33:00 -04:00
parent 8d2b2c0d4d
commit 3e40842844
2 changed files with 8 additions and 8 deletions

Binary file not shown.

View file

@ -101,7 +101,7 @@ namespace FirstPlugin
animFile.Read(reader); animFile.Read(reader);
chunk.ChunkData = animFile; chunk.ChunkData = animFile;
break; break;
/* case ChunkSkeletonData: case ChunkSkeletonData:
SkeletonFile skelFile = new SkeletonFile(); SkeletonFile skelFile = new SkeletonFile();
skelFile.Read(reader); skelFile.Read(reader);
chunk.ChunkData = skelFile; chunk.ChunkData = skelFile;
@ -115,7 +115,7 @@ namespace FirstPlugin
MaterialFile matFile = new MaterialFile(); MaterialFile matFile = new MaterialFile();
matFile.Read(reader); matFile.Read(reader);
chunk.ChunkData = matFile; chunk.ChunkData = matFile;
break;*/ break;
} }
chunk.FileName = chunk.FileName.RemoveIllegaleFolderNameCharacters(); chunk.FileName = chunk.FileName.RemoveIllegaleFolderNameCharacters();
@ -251,9 +251,9 @@ namespace FirstPlugin
long pos = reader.Position; long pos = reader.Position;
uint unk3 = reader.ReadUInt32(); uint unk3 = reader.ReadUInt32();
uint unk4 = reader.ReadUInt32(); //Set to 1
uint SectionSize = reader.ReadUInt32(); //At the end, the file name uint SectionSize = reader.ReadUInt32(); //At the end, the file name
uint Padding = reader.ReadUInt32(); uint unk4 = reader.ReadUInt32(); //Set to 1
uint unk5 = reader.ReadUInt32();
uint NextSectionOffset = reader.ReadUInt32(); uint NextSectionOffset = reader.ReadUInt32();
reader.Seek(pos, System.IO.SeekOrigin.Begin); reader.Seek(pos, System.IO.SeekOrigin.Begin);
@ -279,9 +279,9 @@ namespace FirstPlugin
long pos = reader.Position; long pos = reader.Position;
uint unk3 = reader.ReadUInt32(); uint unk3 = reader.ReadUInt32();
uint unk4 = reader.ReadUInt32(); //Set to 1
uint SectionSize = reader.ReadUInt32(); //At the end, the file name uint SectionSize = reader.ReadUInt32(); //At the end, the file name
uint Padding = reader.ReadUInt32(); uint unk4 = reader.ReadUInt32(); //Set to 1
uint unk5 = reader.ReadUInt32();
reader.Seek(pos, System.IO.SeekOrigin.Begin); reader.Seek(pos, System.IO.SeekOrigin.Begin);
//Material FILE //Material FILE
@ -301,9 +301,9 @@ namespace FirstPlugin
long pos = reader.Position; long pos = reader.Position;
uint unk3 = reader.ReadUInt32(); uint unk3 = reader.ReadUInt32();
uint unk4 = reader.ReadUInt32(); //Set to 1
uint SectionSize = reader.ReadUInt32(); //At the end, the file name uint SectionSize = reader.ReadUInt32(); //At the end, the file name
uint Padding = reader.ReadUInt32(); uint unk4 = reader.ReadUInt32(); //Set to 1
uint unk5 = reader.ReadUInt32();
reader.Seek(pos, System.IO.SeekOrigin.Begin); reader.Seek(pos, System.IO.SeekOrigin.Begin);
//SKEL FILE //SKEL FILE