mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
updated formats.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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),
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user