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);
|
SaveHeader(writer, header, BinaryDataBytes, 4096);
|
||||||
break;
|
break;
|
||||||
case "G3PR":
|
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;
|
break;
|
||||||
case "GRTF":
|
case "GRTF":
|
||||||
var mem = new System.IO.MemoryStream();
|
|
||||||
if (BinaryData != null)
|
|
||||||
{
|
{
|
||||||
((BNTX)BinaryData).Save(mem);
|
var mem = new System.IO.MemoryStream();
|
||||||
SaveHeader(writer, header, mem.ToArray(), 4096);
|
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;
|
break;
|
||||||
case "PRIM":
|
case "PRIM":
|
||||||
SaveHeader(writer, header, BinaryDataBytes);
|
SaveHeader(writer, header, BinaryDataBytes);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user