Add proper chunk type to name and update msbt editor faster
This commit is contained in:
parent
e3a92f9777
commit
31ec93411f
Binary file not shown.
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user