mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-11-22 23:12:59 +08:00
Merge pull request #17 from neos7/master
Little fix for some vanilla gtxd.meta
This commit is contained in:
commit
05ec5e5b76
@ -59,7 +59,15 @@ namespace CodeWalker.GameFiles
|
|||||||
}
|
}
|
||||||
else if (entry.NameLower.EndsWith(".meta"))
|
else if (entry.NameLower.EndsWith(".meta"))
|
||||||
{
|
{
|
||||||
|
//required for update\x64\dlcpacks\mpheist\dlc.rpf\common\data\gtxd.meta and update\x64\dlcpacks\mpluxe\dlc.rpf\common\data\gtxd.meta
|
||||||
|
string bom = Encoding.UTF8.GetString(Encoding.UTF8.GetPreamble());
|
||||||
string xml = Encoding.UTF8.GetString(data);
|
string xml = Encoding.UTF8.GetString(data);
|
||||||
|
|
||||||
|
if (xml.StartsWith(bom, StringComparison.Ordinal))
|
||||||
|
{
|
||||||
|
xml = xml.Remove(0, bom.Length);
|
||||||
|
}
|
||||||
|
|
||||||
LoadMapParentTxds(xml);
|
LoadMapParentTxds(xml);
|
||||||
Loaded = true;
|
Loaded = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user