mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-25 20:34:13 +08:00
(VafsOpener): treat filename extension as a version.
This commit is contained in:
parent
cc229c51cc
commit
1f1816bf2f
@ -43,7 +43,7 @@ namespace GameRes.Formats.Softpal
|
|||||||
|
|
||||||
public VafsOpener ()
|
public VafsOpener ()
|
||||||
{
|
{
|
||||||
Extensions = new string[] { "052", "055" };
|
Extensions = new string[] { "052", "055", "058" };
|
||||||
}
|
}
|
||||||
|
|
||||||
static readonly Lazy<ImageFormat> s_PicFormat = new Lazy<ImageFormat> (() => ImageFormat.FindByTag ("PIC/SOFTPAL"));
|
static readonly Lazy<ImageFormat> s_PicFormat = new Lazy<ImageFormat> (() => ImageFormat.FindByTag ("PIC/SOFTPAL"));
|
||||||
@ -57,7 +57,9 @@ namespace GameRes.Formats.Softpal
|
|||||||
var base_name = Path.GetFileNameWithoutExtension (file.Name).ToUpperInvariant();
|
var base_name = Path.GetFileNameWithoutExtension (file.Name).ToUpperInvariant();
|
||||||
if (0 == data_offset && "TP" == base_name)
|
if (0 == data_offset && "TP" == base_name)
|
||||||
{
|
{
|
||||||
if (file.Name.EndsWith (".055"))
|
var ext = Path.GetExtension (file.Name).TrimStart ('.');
|
||||||
|
int version;
|
||||||
|
if (int.TryParse (ext, out version) && version >= 55)
|
||||||
return OpenTp055Arc (file);
|
return OpenTp055Arc (file);
|
||||||
else
|
else
|
||||||
return OpenTpArc (file);
|
return OpenTpArc (file);
|
||||||
|
@ -715,9 +715,10 @@ Mahokoi ~Ecchi na Mahou de Koi x Koi Shichau~<br/>
|
|||||||
Kuro to Kuro to Kuro no Saidan ~Kodoku~<br/>
|
Kuro to Kuro to Kuro no Saidan ~Kodoku~<br/>
|
||||||
Mikan<br/>
|
Mikan<br/>
|
||||||
</td></tr>
|
</td></tr>
|
||||||
<tr class="odd"><td>*.052<br/>*.055</td><td><tt>VAFSH</tt></td><td>No</td><td rowspan="2">Softpal</td><td rowspan="2">
|
<tr class="odd"><td>*.052<br/>*.055<br/>*.058</td><td><tt>VAFSH</tt></td><td>No</td><td rowspan="2">Softpal</td><td rowspan="2">
|
||||||
Komorebi ni Yureru Tamashii no Koe<br/>
|
Komorebi ni Yureru Tamashii no Koe<br/>
|
||||||
Komokyun!! ~Heart ni Yureru Tamashi no Fandisc~<br/>
|
Komokyun!! ~Heart ni Yureru Tamashi no Fandisc~<br/>
|
||||||
|
Heavenly Guilt -Kami no Inai Machi-<br/>
|
||||||
</td></tr>
|
</td></tr>
|
||||||
<tr class="odd"><td>*</td><td><tt>BPIC</tt></td><td>No</td></tr>
|
<tr class="odd"><td>*</td><td><tt>BPIC</tt></td><td>No</td></tr>
|
||||||
<tr><td>*</td><td><tt>NNNN</tt></td><td>No</td><td>Moko Pro</td><td>
|
<tr><td>*</td><td><tt>NNNN</tt></td><td>No</td><td>Moko Pro</td><td>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user