updated formats.

This commit is contained in:
morkt
2018-09-02 23:58:07 +04:00
parent 9cb100d0d2
commit 381f24ba7c
11 changed files with 39 additions and 7 deletions

View File

@@ -27,6 +27,8 @@ using System.ComponentModel.Composition;
using System.IO;
using System.Windows.Media;
// [000623][Marimo] Setsunai
namespace GameRes.Formats.Dice
{
internal class RbpMetaData : ImageMetaData

View File

@@ -127,8 +127,8 @@ namespace GameRes.Formats.KeroQ
Buffer.BlockCopy (buffer, 1, pixels, dst, stride);
dst += stride;
}
PixelFormat format = 24 == info.BPP ? PixelFormats.Bgr24 : PixelFormats.Bgr32;
return ImageData.Create (info, PixelFormats.Bgr24, null, pixels);
PixelFormat format = 24 == info.BPP ? PixelFormats.Bgr24 : PixelFormats.Bgra32;
return ImageData.Create (info, PixelFormats.Bgr24, null, pixels, stride);
}
}

View File

@@ -28,6 +28,8 @@ using System.IO;
using System.Windows.Media;
using System.Windows.Media.Imaging;
// [010719][Studio Jikkenshitsu] Shin Gekka Bijin ~Hitori Shizuka
namespace GameRes.Formats.Speed
{
internal class SpMetaData : ImageMetaData
@@ -46,7 +48,7 @@ namespace GameRes.Formats.Speed
public SpDatFormat ()
{
Extensions = new string[0];
Signatures = new uint[] { 0x010003, 0x010007, 0 };
Signatures = new uint[] { 0x010003, 0x010007, 0x01000B, 0 };
}
public override ImageMetaData ReadMetaData (IBinaryStream file)
@@ -55,7 +57,7 @@ namespace GameRes.Formats.Speed
if (header.ToInt32 (4) != 0)
return null;
int flags = header.ToUInt16 (0);
if ((flags & ~7) != 0)
if ((flags & ~0xF) != 0)
return null;
return new SpMetaData {
Width = header.ToUInt16 (0x16),

View File

@@ -29,6 +29,8 @@ using System.ComponentModel.Composition;
using System.IO;
using System.Windows.Media;
// [000331][WEAPON] Seido Techou
namespace GameRes.Formats.Weapon
{
internal class CgEntry : Entry

View File

@@ -27,6 +27,7 @@ using System.ComponentModel.Composition;
using System.IO;
using System.Windows.Media;
// [000421][Sepia] Rinjin Mousou ~Danchizoku no Hirusagari~
// [000623][Sweet] Depaga ~Service Angel~
namespace GameRes.Formats.Hmp