More ACB support

This commit is contained in:
Skyth 2017-12-02 18:44:01 +03:00
parent 86a218f630
commit 72cc15b402

View File

@ -133,10 +133,14 @@ namespace AcbEditor
{ {
while (waveformReader.Read()) while (waveformReader.Read())
{ {
ushort id = waveformReader.GetUInt16("Id");
byte encodeType = waveformReader.GetByte("EncodeType"); byte encodeType = waveformReader.GetByte("EncodeType");
bool streaming = waveformReader.GetBoolean("Streaming"); 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"); string outputName = id.ToString("D5");
if (streaming) if (streaming)
{ {
@ -247,10 +251,14 @@ namespace AcbEditor
{ {
while (reader.Read()) while (reader.Read())
{ {
ushort id = reader.GetUInt16("Id");
byte encodeType = reader.GetByte("EncodeType"); byte encodeType = reader.GetByte("EncodeType");
bool streaming = reader.GetBoolean("Streaming"); 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"); string inputName = id.ToString("D5");
if (streaming) if (streaming)
{ {