mirror of
https://github.com/Perfare/Il2CppDumper.git
synced 2025-01-09 11:17:35 -03:00
修复一个bug
This commit is contained in:
parent
ddf7ee2d4b
commit
aa1be209f5
2 changed files with 16 additions and 5 deletions
|
@ -173,7 +173,7 @@ namespace Il2CppDumper
|
|||
for (var i = 0; i < pMetadataRegistration.typesCount; ++i)
|
||||
{
|
||||
types[i] = MapVATR<Il2CppType>(pTypes[i]);
|
||||
types[i].Init();
|
||||
types[i].Init(Version);
|
||||
typeDic.Add(pTypes[i], types[i]);
|
||||
}
|
||||
if (Version >= 24.2)
|
||||
|
|
|
@ -142,14 +142,25 @@ namespace Il2CppDumper
|
|||
public uint num_mods { get; set; }
|
||||
public uint byref { get; set; }
|
||||
public uint pinned { get; set; }
|
||||
public uint valuetype { get; set; }
|
||||
|
||||
public void Init()
|
||||
public void Init(double version)
|
||||
{
|
||||
attrs = bits & 0xffff;
|
||||
type = (Il2CppTypeEnum)((bits >> 16) & 0xff);
|
||||
num_mods = (bits >> 24) & 0x3f;
|
||||
byref = (bits >> 30) & 1;
|
||||
pinned = bits >> 31;
|
||||
if (version >= 27.2)
|
||||
{
|
||||
num_mods = (bits >> 24) & 0x1f;
|
||||
byref = (bits >> 29) & 1;
|
||||
pinned = (bits >> 30) & 1;
|
||||
valuetype = bits >> 31;
|
||||
}
|
||||
else
|
||||
{
|
||||
num_mods = (bits >> 24) & 0x3f;
|
||||
byref = (bits >> 30) & 1;
|
||||
pinned = bits >> 31;
|
||||
}
|
||||
data = new Union { dummy = datapoint };
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue