mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-11-16 20:17:30 +08:00
Merge pull request #258 from alexguirre/fix-hashed-ydd
Fix .ydd export/import with unsolved hashes
This commit is contained in:
commit
10ea57e86d
@ -76,13 +76,7 @@ namespace CodeWalker.GameFiles
|
|||||||
var hash = hashes[i];
|
var hash = hashes[i];
|
||||||
if ((drawable.Name == null) || (drawable.Name.EndsWith("#dd")))
|
if ((drawable.Name == null) || (drawable.Name.EndsWith("#dd")))
|
||||||
{
|
{
|
||||||
string hstr = JenkIndex.TryGetString(hash);
|
drawable.Name = YddXml.HashString((MetaHash)hash);
|
||||||
if (!string.IsNullOrEmpty(hstr))
|
|
||||||
{
|
|
||||||
drawable.Name = hstr;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{ }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5847,7 +5847,7 @@ namespace CodeWalker.GameFiles
|
|||||||
var d = new Drawable();
|
var d = new Drawable();
|
||||||
d.ReadXml(inode, ddsfolder);
|
d.ReadXml(inode, ddsfolder);
|
||||||
drawables.Add(d);
|
drawables.Add(d);
|
||||||
drawablehashes.Add(JenkHash.GenHash(d.Name));//TODO: check this!
|
drawablehashes.Add(XmlMeta.GetHash(d.Name));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user