bunch of stuff.

This commit is contained in:
morkt
2023-08-24 01:33:50 +04:00
parent ea096c52ef
commit 77fde27d26
119 changed files with 11078 additions and 619 deletions

View File

@@ -54,6 +54,11 @@ namespace GameRes.Formats.FrontWing
public override bool IsHierarchic { get { return true; } }
public override bool CanWrite { get { return false; } }
public FltOpener()
{
ContainedFormats = new[] { "FG/FWGI", "OGG", "DAT/GENERIC" };
}
public override ArcFile TryOpen (ArcView file)
{
if (!file.View.AsciiEqual (4, "PACKDATA0000"))
@@ -130,4 +135,9 @@ namespace GameRes.Formats.FrontWing
0x22, 0x45, 0xF2, 0x65, 0x74, 0x34, 0x35, 0xDE, 0x59, 0x27, 0xA3, 0xFB, 0x0C, 0x80, 0x32, 0xFF,
};
}
[Export(typeof(ResourceAlias))]
[ExportMetadata("Extension", "CSF")]
[ExportMetadata("Target", "DAT/GENERIC")]
public class CsfFormat : ResourceAlias { }
}

View File

@@ -23,9 +23,9 @@
// IN THE SOFTWARE.
//
using System;
using System.ComponentModel.Composition;
using System.IO;
using System.Windows.Media.Imaging;
using GameRes.Compression;
namespace GameRes.Formats.FrontWing
@@ -94,7 +94,7 @@ namespace GameRes.Formats.FrontWing
{
var fge_name = Path.ChangeExtension (file.Name, ".fge");
if (!VFS.FileExists (fge_name))
return null;
throw new OperationCanceledException("Required metadata file '"+Path.GetFileName(fge_name)+"' not found.");
using (var fg = OpenFg (file))
{
return Fwgi.Value.ReadMetaData (fg);