mirror of
https://github.com/crskycode/GARbro.git
synced 2025-01-11 20:39:29 +08:00
(YPF): adjusted version detection.
This commit is contained in:
parent
f6304da105
commit
86fb8d4a0e
@ -183,7 +183,7 @@ namespace GameRes.Formats.YuRis
|
||||
scheme = new YpfScheme {
|
||||
SwapTable = GuessSwapTable (version),
|
||||
GuessKey = true,
|
||||
ExtraHeaderSize = 0x1F4 == version || 0x1E1 == version ? 4u : 0u,
|
||||
ExtraHeaderSize = version >= 0x1D9 ? 4u : 0u,
|
||||
};
|
||||
return scheme;
|
||||
}
|
||||
@ -354,7 +354,7 @@ namespace GameRes.Formats.YuRis
|
||||
uint* header = (uint*)raw;
|
||||
uint version = header[1];
|
||||
int first_item, last_item;
|
||||
if (version >= 0x22A || 0x1E1 == version || 0x1D9 == version)
|
||||
if (version >= 0x1D9)
|
||||
{
|
||||
first_item = 3;
|
||||
last_item = 7;
|
||||
|
Loading…
x
Reference in New Issue
Block a user