mirror of
https://github.com/Perfare/Il2CppDumper.git
synced 2025-01-24 17:57:56 -03:00
防傻瓜提示
This commit is contained in:
parent
6499cf5439
commit
e6b1f1f4c0
1 changed files with 4 additions and 0 deletions
|
@ -48,6 +48,10 @@ namespace Il2CppDumper
|
||||||
throw new InvalidDataException("ERROR: Metadata file supplied is not valid metadata file.");
|
throw new InvalidDataException("ERROR: Metadata file supplied is not valid metadata file.");
|
||||||
}
|
}
|
||||||
var version = ReadInt32();
|
var version = ReadInt32();
|
||||||
|
if (version < 0 || version > 1000)
|
||||||
|
{
|
||||||
|
throw new InvalidDataException("ERROR: Metadata file supplied is not valid metadata file.");
|
||||||
|
}
|
||||||
if (version < 16 || version > 29)
|
if (version < 16 || version > 29)
|
||||||
{
|
{
|
||||||
throw new NotSupportedException($"ERROR: Metadata file supplied is not a supported version[{version}].");
|
throw new NotSupportedException($"ERROR: Metadata file supplied is not a supported version[{version}].");
|
||||||
|
|
Loading…
Add table
Reference in a new issue