PTCL : Make sure to save changes to bfres for switch
This commit is contained in:
parent
d45ca032b2
commit
c220b6a3ed
@ -652,18 +652,28 @@ namespace FirstPlugin
|
||||
SaveHeader(writer, header, BinaryDataBytes, 4096);
|
||||
break;
|
||||
case "G3PR":
|
||||
// SaveHeader(writer, header, ((BFRES)BinaryData).Save(), 4096);
|
||||
SaveHeader(writer, header, BinaryDataBytes, 4096);
|
||||
{
|
||||
var mem = new System.IO.MemoryStream();
|
||||
if (BinaryData != null)
|
||||
{
|
||||
((BFRES)BinaryData).Save(mem);
|
||||
SaveHeader(writer, header, mem.ToArray(), 4096);
|
||||
}
|
||||
else
|
||||
SaveHeader(writer, header, BinaryDataBytes, 4096);
|
||||
}
|
||||
break;
|
||||
case "GRTF":
|
||||
var mem = new System.IO.MemoryStream();
|
||||
if (BinaryData != null)
|
||||
{
|
||||
((BNTX)BinaryData).Save(mem);
|
||||
SaveHeader(writer, header, mem.ToArray(), 4096);
|
||||
var mem = new System.IO.MemoryStream();
|
||||
if (BinaryData != null)
|
||||
{
|
||||
((BNTX)BinaryData).Save(mem);
|
||||
SaveHeader(writer, header, mem.ToArray(), 4096);
|
||||
}
|
||||
else
|
||||
SaveHeader(writer, header, BinaryDataBytes, 4096);
|
||||
}
|
||||
else
|
||||
SaveHeader(writer, header, BinaryDataBytes, 4096);
|
||||
break;
|
||||
case "PRIM":
|
||||
SaveHeader(writer, header, BinaryDataBytes);
|
||||
|
Loading…
Reference in New Issue
Block a user