1
0
mirror of synced 2024-11-28 09:20:57 +01:00

Add proper chunk type to name and update msbt editor faster

This commit is contained in:
KillzXGaming 2019-08-16 18:09:40 -04:00
parent e3a92f9777
commit 31ec93411f
3 changed files with 6 additions and 3 deletions

Binary file not shown.

View File

@ -58,7 +58,7 @@ namespace DKCTF
reader.SeekBegin(startPos + (int)chunk.DataOffset);
byte[] chunkData = reader.ReadBytes((int)chunk.DataSize);
Nodes.Add(new MessageEntry(chunkData, index++));
Nodes.Add(new MessageEntry(chunkData, index++, chunk.ChunkType));
}
}
}
@ -71,9 +71,9 @@ namespace DKCTF
{
FirstPlugin.MSBT msbt;
public MessageEntry(byte[] data, int index)
public MessageEntry(byte[] data, int index, string type)
{
Text = $"Message Entry {index}";
Text = $"Message Entry ({type}) {index}";
var chunkFile = STFileLoader.OpenFileFormat(Text, data);
if (chunkFile != null && chunkFile is FirstPlugin.MSBT)

View File

@ -37,6 +37,7 @@ namespace FirstPlugin.Forms
public void LoadMSBT(MSBT msbt)
{
listViewCustom1.BeginUpdate();
listViewCustom1.Items.Clear();
activeMessageFile = msbt;
@ -71,6 +72,8 @@ namespace FirstPlugin.Forms
}
}
}
listViewCustom1.EndUpdate();
}
private void listViewCustom1_SelectedIndexChanged(object sender, EventArgs e)