Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions CodeWalker.Core/GameFiles/FileTypes/YddFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,7 @@ public void Load(byte[] data, RpfFileEntry entry)
var hash = hashes[i];
if ((drawable.Name == null) || (drawable.Name.EndsWith("#dd")))
{
string hstr = JenkIndex.TryGetString(hash);
if (!string.IsNullOrEmpty(hstr))
{
drawable.Name = hstr;
}
else
{ }
drawable.Name = YddXml.HashString((MetaHash)hash);
}
}

Expand Down
2 changes: 1 addition & 1 deletion CodeWalker.Core/GameFiles/Resources/Drawable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5847,7 +5847,7 @@ public void ReadXml(XmlNode node, string ddsfolder)
var d = new Drawable();
d.ReadXml(inode, ddsfolder);
drawables.Add(d);
drawablehashes.Add(JenkHash.GenHash(d.Name));//TODO: check this!
drawablehashes.Add(XmlMeta.GetHash(d.Name));
}
}

Expand Down