mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
implemented IMGX images.
This commit is contained in:
@@ -23,7 +23,6 @@
|
||||
// IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.Composition;
|
||||
using System.IO;
|
||||
@@ -99,6 +98,14 @@ namespace GameRes.Formats.Nonono
|
||||
return new BinMemoryStream (data, entry.Name);
|
||||
}
|
||||
|
||||
public override IImageDecoder OpenImage (ArcFile arc, Entry entry)
|
||||
{
|
||||
var input = arc.OpenBinaryEntry (entry);
|
||||
if (input.Length <= 8 || input.Signature != 0x58474D49) // 'IMGX'
|
||||
return ImageFormatDecoder.Create (input);
|
||||
return new ImgXDecoder (input);
|
||||
}
|
||||
|
||||
internal void Decrypt (byte[] data, int pos, int count, RandomGenerator rnd)
|
||||
{
|
||||
for (int i = 0; i < count; ++i)
|
||||
|
||||
Reference in New Issue
Block a user