mirror of
https://github.com/crskycode/GARbro.git
synced 2025-01-11 04:29:15 +08:00
(S5I): fixed reader.
This commit is contained in:
parent
f099e55ac6
commit
3ef5702a1b
@ -29,6 +29,11 @@ using System.Windows.Media;
|
|||||||
|
|
||||||
namespace GameRes.Formats.Rugp
|
namespace GameRes.Formats.Rugp
|
||||||
{
|
{
|
||||||
|
internal class S5iMetaData : RioMetaData
|
||||||
|
{
|
||||||
|
public int Schema;
|
||||||
|
}
|
||||||
|
|
||||||
[Export(typeof(ImageFormat))]
|
[Export(typeof(ImageFormat))]
|
||||||
public class S5iFormat : ImageFormat
|
public class S5iFormat : ImageFormat
|
||||||
{
|
{
|
||||||
@ -47,7 +52,7 @@ namespace GameRes.Formats.Rugp
|
|||||||
if ("CS5i" != class_ref)
|
if ("CS5i" != class_ref)
|
||||||
return null;
|
return null;
|
||||||
file.Seek (8, SeekOrigin.Current);
|
file.Seek (8, SeekOrigin.Current);
|
||||||
return new RioMetaData
|
return new S5iMetaData
|
||||||
{
|
{
|
||||||
Width = file.ReadUInt16(),
|
Width = file.ReadUInt16(),
|
||||||
Height = file.ReadUInt16(),
|
Height = file.ReadUInt16(),
|
||||||
@ -59,7 +64,7 @@ namespace GameRes.Formats.Rugp
|
|||||||
|
|
||||||
public override ImageData Read (IBinaryStream file, ImageMetaData info)
|
public override ImageData Read (IBinaryStream file, ImageMetaData info)
|
||||||
{
|
{
|
||||||
var meta = (RioMetaData)info;
|
var meta = (S5iMetaData)info;
|
||||||
file.Position = meta.ObjectOffset + 0x14;
|
file.Position = meta.ObjectOffset + 0x14;
|
||||||
int size;
|
int size;
|
||||||
if (meta.Schema != 0)
|
if (meta.Schema != 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user