TextureBase BlockLength fix, ResourceAnalyzer improvement, resource packing improvement

This commit is contained in:
dexy
2020-03-12 00:05:49 +11:00
Unverified
parent b89c707175
commit 65a3435fb9
7 changed files with 224 additions and 133 deletions
@@ -543,6 +543,17 @@ namespace CodeWalker.GameFiles
Hashes = hashes.ToArray();
//####### TODO: investigate missing data here!!! #######
//var bytes = reader.ReadBytes(142 * Count);
//if (bytes != null)
//{
// for (int i = 0; i < bytes.Length; i++)
// {
// if (bytes[i] != 0)
// { break; }
// }
//}
//// just testing...
//for (int i = 0; i < Parameters.Length; i++)
//{
@@ -661,7 +672,6 @@ namespace CodeWalker.GameFiles
{
YdrXml.OpenTag(sb, indent, otstr);
YdrXml.StringTag(sb, cind, "Name", YdrXml.XmlEscape(tex.Name));
YdrXml.ValueTag(sb, cind, "Unk32", tex.Unknown_32h.ToString());
YdrXml.CloseTag(sb, indent, "Item");
}
else
@@ -715,6 +725,7 @@ namespace CodeWalker.GameFiles
{
var tex = new TextureBase();
tex.ReadXml(pnode, null);//embedded textures will get replaced in ShaderFX ReadXML
tex.Unknown_32h = 2;
p.Data = tex;
}
}