mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-23 13:45:34 +08:00
(YSK): added signatures.
This commit is contained in:
parent
853dc920cc
commit
fcf6a3bc6e
@ -44,8 +44,10 @@ namespace GameRes.Formats.GPlay
|
|||||||
|
|
||||||
public YskOpener ()
|
public YskOpener ()
|
||||||
{
|
{
|
||||||
// "AA1640124080", "AA7790743350", "AA1825646340"
|
// "AA1640124080", "AA7790743350", "AA1825646340", "AA1316763700", "AA1945074730", "AA7235065580"
|
||||||
Signatures = new uint[] { 0x36314141, 0x39324141, 0x37374141, 0x38314141, 0 };
|
Signatures = new uint[] {
|
||||||
|
0x36314141, 0x39324141, 0x37374141, 0x38314141, 0x33314141, 0x39314141, 0x32374141, 0
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
const ulong DefaultKey = 0x1234567812345678ul;
|
const ulong DefaultKey = 0x1234567812345678ul;
|
||||||
@ -67,7 +69,7 @@ namespace GameRes.Formats.GPlay
|
|||||||
for (int i = 0; i < count; ++i)
|
for (int i = 0; i < count; ++i)
|
||||||
{
|
{
|
||||||
var name = file.View.ReadString (index_offset, 0x14);
|
var name = file.View.ReadString (index_offset, 0x14);
|
||||||
var entry = FormatCatalog.Instance.Create<Entry> (name);
|
var entry = Create<Entry> (name);
|
||||||
entry.Offset = data_offset;
|
entry.Offset = data_offset;
|
||||||
entry.Size = file.View.ReadUInt32 (index_offset+0x14);
|
entry.Size = file.View.ReadUInt32 (index_offset+0x14);
|
||||||
if (!entry.CheckPlacement (file.MaxOffset))
|
if (!entry.CheckPlacement (file.MaxOffset))
|
||||||
|
Loading…
Reference in New Issue
Block a user