From 72cc15b40254f7aff9c1caf1b484eb067b6d4898 Mon Sep 17 00:00:00 2001 From: Skyth <19259897+blueskythlikesclouds@users.noreply.github.com> Date: Sat, 2 Dec 2017 18:44:01 +0300 Subject: [PATCH] More ACB support --- Source/AcbEditor/Program.cs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Source/AcbEditor/Program.cs b/Source/AcbEditor/Program.cs index 2fdf14d..ca7b756 100644 --- a/Source/AcbEditor/Program.cs +++ b/Source/AcbEditor/Program.cs @@ -133,10 +133,14 @@ namespace AcbEditor { while (waveformReader.Read()) { - ushort id = waveformReader.GetUInt16("Id"); byte encodeType = waveformReader.GetByte("EncodeType"); bool streaming = waveformReader.GetBoolean("Streaming"); + ushort id = + waveformReader.ContainsField("MemoryAwbId") ? + streaming ? waveformReader.GetUInt16("StreamAwbId") : waveformReader.GetUInt16("MemoryAwbId") : + waveformReader.GetUInt16("Id"); + string outputName = id.ToString("D5"); if (streaming) { @@ -247,10 +251,14 @@ namespace AcbEditor { while (reader.Read()) { - ushort id = reader.GetUInt16("Id"); byte encodeType = reader.GetByte("EncodeType"); bool streaming = reader.GetBoolean("Streaming"); + ushort id = + reader.ContainsField("MemoryAwbId") ? + streaming ? reader.GetUInt16("StreamAwbId") : reader.GetUInt16("MemoryAwbId") : + reader.GetUInt16("Id"); + string inputName = id.ToString("D5"); if (streaming) {