Support key_manifest in Aion2 parsing

Add handling for entries named "key_manifest" in CUE4ParseViewModel. The code reads records using Aion2TextLocalizationResource.ReadKeyManifest(entry.Read()) and sets the tab document to a JSON object containing Version=2, RecordCount and Records, using the existing saveProperties/updateUi flow. This enables viewing key_manifest contents in the UI.
This commit is contained in:
FudgeRookie 2026-06-18 21:23:51 +07:00
parent dfd686e870
commit 2a56e90bce

View File

@ -1095,6 +1095,11 @@ public class CUE4ParseViewModel : ViewModel
var l10nData = new FAion2L10NFile(entry, Provider);
TabControl.SelectedTab.SetDocumentText(JsonConvert.SerializeObject(l10nData, Formatting.Indented), saveProperties, updateUi);
}
else if (entry.NameWithoutExtension.Equals("key_manifest"))
{
var records = Aion2TextLocalizationResource.ReadKeyManifest(entry.Read());
TabControl.SelectedTab.SetDocumentText(JsonConvert.SerializeObject(new { Version = 2, RecordCount = records.Count, Records = records }, Formatting.Indented), saveProperties, updateUi);
}
else
{
FAion2DataFile datfile = entry.NameWithoutExtension switch