mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
Fix ImageArray serialization
This commit is contained in:
@@ -25,6 +25,7 @@
|
|||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
using System.Runtime.Serialization;
|
||||||
using GameRes.Utility;
|
using GameRes.Utility;
|
||||||
|
|
||||||
namespace GameRes.Formats.ShiinaRio
|
namespace GameRes.Formats.ShiinaRio
|
||||||
@@ -608,10 +609,14 @@ namespace GameRes.Formats.ShiinaRio
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Serializable]
|
[Serializable]
|
||||||
|
[DataContract]
|
||||||
public class ImageArray : IByteArray
|
public class ImageArray : IByteArray
|
||||||
{
|
{
|
||||||
|
[DataMember]
|
||||||
private byte[] m_common;
|
private byte[] m_common;
|
||||||
|
[DataMember]
|
||||||
private byte[] m_extra;
|
private byte[] m_extra;
|
||||||
|
[DataMember]
|
||||||
private int m_common_length;
|
private int m_common_length;
|
||||||
|
|
||||||
public ImageArray (byte[] common) : this (common, common.Length, Array.Empty<byte>())
|
public ImageArray (byte[] common) : this (common, common.Length, Array.Empty<byte>())
|
||||||
|
|||||||
Reference in New Issue
Block a user