mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
(SystemAqua): audio files are either wav or midi.
This commit is contained in:
@@ -39,6 +39,11 @@ namespace GameRes.Formats.SystemAqua
|
|||||||
public override bool IsHierarchic { get { return false; } }
|
public override bool IsHierarchic { get { return false; } }
|
||||||
public override bool CanWrite { get { return false; } }
|
public override bool CanWrite { get { return false; } }
|
||||||
|
|
||||||
|
public DatOpener ()
|
||||||
|
{
|
||||||
|
Extensions = new string[] { "dat", "cat" };
|
||||||
|
}
|
||||||
|
|
||||||
public override ArcFile TryOpen (ArcView file)
|
public override ArcFile TryOpen (ArcView file)
|
||||||
{
|
{
|
||||||
int count = file.View.ReadInt32 (0x10);
|
int count = file.View.ReadInt32 (0x10);
|
||||||
@@ -83,7 +88,7 @@ namespace GameRes.Formats.SystemAqua
|
|||||||
file.View.Read (entry.Offset+0xC, type, 0, 3);
|
file.View.Read (entry.Offset+0xC, type, 0, 3);
|
||||||
if (type.AsciiEqual ("000"))
|
if (type.AsciiEqual ("000"))
|
||||||
{
|
{
|
||||||
entry.ChangeType (AudioFormat.Wav);
|
entry.Type = "audio"; // either WAV or MIDI
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user