mirror of
https://github.com/Perfare/Il2CppDumper.git
synced 2025-01-09 19:27:17 -03:00
Add check for header size
This commit is contained in:
parent
217f1d4737
commit
a33dc003c2
1 changed files with 4 additions and 0 deletions
|
@ -58,6 +58,10 @@ namespace Il2CppDumper
|
|||
}
|
||||
Version = version;
|
||||
header = ReadClass<Il2CppGlobalMetadataHeader>(0);
|
||||
if (stream.Position != header.stringLiteralOffset)
|
||||
{
|
||||
Console.WriteLine($"WARNING: Metadata header size does not match declared version {version}, version might be incorrect.");
|
||||
}
|
||||
if (version == 24)
|
||||
{
|
||||
if (header.stringLiteralOffset == 264)
|
||||
|
|
Loading…
Reference in a new issue