Fix for project items displaying hashes when custom resources loaded

This commit is contained in:
dexy 2022-01-28 04:41:05 +11:00
parent 7eaf984005
commit 7ec9b10e32

View File

@ -8584,6 +8584,8 @@ namespace CodeWalker.Project
}
private void LoadYdrFromFile(YdrFile ydr, string filename)
{
AddFilenameToJenkIndex(filename);
byte[] data = File.ReadAllBytes(filename);
ydr.Load(data);
@ -8595,6 +8597,8 @@ namespace CodeWalker.Project
}
private void LoadYddFromFile(YddFile ydd, string filename)
{
AddFilenameToJenkIndex(filename);
byte[] data = File.ReadAllBytes(filename);
ydd.Load(data);
@ -8606,6 +8610,8 @@ namespace CodeWalker.Project
}
private void LoadYftFromFile(YftFile yft, string filename)
{
AddFilenameToJenkIndex(filename);
byte[] data = File.ReadAllBytes(filename);
yft.Load(data);
@ -8617,6 +8623,8 @@ namespace CodeWalker.Project
}
private void LoadYtdFromFile(YtdFile ytd, string filename)
{
AddFilenameToJenkIndex(filename);
byte[] data = File.ReadAllBytes(filename);
ytd.Load(data);
@ -8628,6 +8636,13 @@ namespace CodeWalker.Project
}
private void AddFilenameToJenkIndex(string filename)
{
var n = Path.GetFileNameWithoutExtension(filename).ToLowerInvariant();
JenkIndex.Ensure(n);
}
private void LoadProjectUI()
{