mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-27 15:44:00 +08:00
implemented S5I images.
This commit is contained in:
parent
c346681e49
commit
7d74f348d5
@ -230,6 +230,7 @@
|
|||||||
<Compile Include="RealLive\ImageG00.cs" />
|
<Compile Include="RealLive\ImageG00.cs" />
|
||||||
<Compile Include="RealLive\ImagePDT.cs" />
|
<Compile Include="RealLive\ImagePDT.cs" />
|
||||||
<Compile Include="rUGP\ImageRIP.cs" />
|
<Compile Include="rUGP\ImageRIP.cs" />
|
||||||
|
<Compile Include="rUGP\ImageS5I.cs" />
|
||||||
<Compile Include="ScrPlayer\ArcPAK.cs" />
|
<Compile Include="ScrPlayer\ArcPAK.cs" />
|
||||||
<Compile Include="ScrPlayer\ImageI.cs" />
|
<Compile Include="ScrPlayer\ImageI.cs" />
|
||||||
<Compile Include="ShiinaRio\WarcEncryption.cs" />
|
<Compile Include="ShiinaRio\WarcEncryption.cs" />
|
||||||
|
73
ArcFormats/rUGP/ImageS5I.cs
Normal file
73
ArcFormats/rUGP/ImageS5I.cs
Normal file
@ -0,0 +1,73 @@
|
|||||||
|
//! \file ImageS5I.cs
|
||||||
|
//! \date Wed Nov 09 16:25:17 2016
|
||||||
|
//! \brief rUGP engine image format.
|
||||||
|
//
|
||||||
|
// Copyright (C) 2016 by morkt
|
||||||
|
//
|
||||||
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
// of this software and associated documentation files (the "Software"), to
|
||||||
|
// deal in the Software without restriction, including without limitation the
|
||||||
|
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
||||||
|
// sell copies of the Software, and to permit persons to whom the Software is
|
||||||
|
// furnished to do so, subject to the following conditions:
|
||||||
|
//
|
||||||
|
// The above copyright notice and this permission notice shall be included in
|
||||||
|
// all copies or substantial portions of the Software.
|
||||||
|
//
|
||||||
|
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||||
|
// IN THE SOFTWARE.
|
||||||
|
//
|
||||||
|
|
||||||
|
using System.ComponentModel.Composition;
|
||||||
|
using System.IO;
|
||||||
|
using System.Windows.Media;
|
||||||
|
|
||||||
|
namespace GameRes.Formats.Rugp
|
||||||
|
{
|
||||||
|
[Export(typeof(ImageFormat))]
|
||||||
|
public class S5iFormat : ImageFormat
|
||||||
|
{
|
||||||
|
public override string Tag { get { return "S5I"; } }
|
||||||
|
public override string Description { get { return "rUGP engine image format"; } }
|
||||||
|
public override uint Signature { get { return 0; } }
|
||||||
|
|
||||||
|
public override ImageMetaData ReadMetaData (IBinaryStream file)
|
||||||
|
{
|
||||||
|
if (file.Signature != CRioArchive.ObjectSignature)
|
||||||
|
return null;
|
||||||
|
var rio = new CRioArchive (file);
|
||||||
|
uint signature;
|
||||||
|
var class_ref = rio.LoadRioTypeCore (out signature);
|
||||||
|
uint object_pos = (uint)file.Position;
|
||||||
|
if ("CS5i" != class_ref)
|
||||||
|
return null;
|
||||||
|
file.Seek (8, SeekOrigin.Current);
|
||||||
|
return new RioMetaData
|
||||||
|
{
|
||||||
|
Width = file.ReadUInt16(),
|
||||||
|
Height = file.ReadUInt16(),
|
||||||
|
BPP = 32,
|
||||||
|
ObjectOffset = object_pos,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
public override ImageData Read (IBinaryStream file, ImageMetaData info)
|
||||||
|
{
|
||||||
|
var meta = (RioMetaData)info;
|
||||||
|
file.Position = meta.ObjectOffset + 0x14;
|
||||||
|
int size = file.ReadInt32();
|
||||||
|
var pixels = file.ReadBytes (size);
|
||||||
|
return ImageData.Create (info, PixelFormats.Bgra32, null, pixels);
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void Write (Stream file, ImageData image)
|
||||||
|
{
|
||||||
|
throw new System.NotImplementedException ("S5iFormat.Write not implemented");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -1108,6 +1108,7 @@ Eijin-sou<br/>
|
|||||||
Etsuraku no Tane<br/>
|
Etsuraku no Tane<br/>
|
||||||
Fuka no Jugoku<br/>
|
Fuka no Jugoku<br/>
|
||||||
Gakkou Yarashii Kaidan<br/>
|
Gakkou Yarashii Kaidan<br/>
|
||||||
|
Gokkun♪ Vampire ☆ Princess<br/>
|
||||||
Hanamaru! 2<br/>
|
Hanamaru! 2<br/>
|
||||||
Hime Kami 1/2<br/>
|
Hime Kami 1/2<br/>
|
||||||
In'youchuu Goku ~Ryoujoku Jigoku Taimaroku~<br/>
|
In'youchuu Goku ~Ryoujoku Jigoku Taimaroku~<br/>
|
||||||
@ -1241,7 +1242,15 @@ Pigeon Blood<br/>
|
|||||||
<tr class="odd last"><td>*.adp</td><td>-</td><td>No</td></tr>
|
<tr class="odd last"><td>*.adp</td><td>-</td><td>No</td></tr>
|
||||||
<tr><td>*.cab</td><td><tt>PackDat3</tt></td><td>No</td><td>Entertainment<br/>Executive Engine</td><td>
|
<tr><td>*.cab</td><td><tt>PackDat3</tt></td><td>No</td><td>Entertainment<br/>Executive Engine</td><td>
|
||||||
Ryoujoku Fukushuu Gakuen ~Rinkan no Houkago~<br/>
|
Ryoujoku Fukushuu Gakuen ~Rinkan no Houkago~<br/>
|
||||||
|
Shin Onna Kyoushi Yuuwaku Shinro Shidoushitsu<br/>
|
||||||
</td></tr>
|
</td></tr>
|
||||||
|
<tr class="odd"><td>*.dat</td><td>-</td><td>No</td><td>YaneSDK</td><td>
|
||||||
|
Ore-sama no RagnaRock<br/>
|
||||||
|
</td></tr>
|
||||||
|
<tr><td>*.rio</td><td>-</td><td>No</td><td rowspan="2">age</td><td rowspan="2">
|
||||||
|
Kaseki no Uta<br/>
|
||||||
|
</td></tr>
|
||||||
|
<tr class="last"><td>*.rip<br/>*.s5i</td><td>-</td><td>No</td></tr>
|
||||||
</table>
|
</table>
|
||||||
<p><a name="note-1" class="footnote">1</a> Non-encrypted only</p>
|
<p><a name="note-1" class="footnote">1</a> Non-encrypted only</p>
|
||||||
</body>
|
</body>
|
||||||
|
Loading…
Reference in New Issue
Block a user