From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:IL2CPP global-metadata.dat" |
|---|
| claim | "After the metadata sets a version, Il2CppDumper refines it from the native binary's CodeRegistration with plausibility limits (limit = 0x50000, or 0x35000 for the WebAssembly memory image). In AutoPlusInit (used when the pattern search found a CodeRegistration), for versions >= 24.2 it reads the structure and: version 31: genericMethodPointersCount > limit moves the address back 2 pointers (version stays 31), else the version becomes 29; version 29: genericMethodPointersCount > limit makes it 29.1 and moves back 2 pointers; version 27: reversePInvokeWrapperCount > limit makes it 27.1 and moves back 1 pointer; version 24.4: the address always moves back 2 pointers, and reversePInvokeWrapperCount > limit makes it 24.5 and moves back 1 more; version 24.2: interopDataCount == 0 makes it 24.3 and moves back 2 pointers. Init() then: 27 with invokerPointersCount > limit becomes 27.1; 27.1 becomes 27.2 when every rgctx data value of the first code gen module that has rgctxs is > limit; 24.4 with invokerPointersCount > limit becomes 24.5; 24.2 with codeGenModules == 0 becomes 24.3. These are heuristics on the dumper's own struct reads." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:IL2CPP global-metadata.dat" |
|---|
| observed_in | |
|---|
|
|---|
| data | | trigger | "CodeRegistration located by PlusSearch (AutoPlusInit) or given manually (Init)" |
|---|
| effect | "Version changed to 24.3, 24.5, 27.1, 27.2 or 29.1; registration address shifted back by 1 or 2 pointers" |
|---|
| function | "Il2Cpp.AutoPlusInit and Il2Cpp.Init (Il2Cpp.cs)" |
|---|
| condition | "limit 0x50000 (0x35000 for WebAssemblyMemory)" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "AutoPlusInit lines 51-118 and the start of Init 120-160 read in full" |
|---|
| repo | "https://github.com/Perfare/Il2CppDumper" |
|---|
| commit | "4741d46ba9cd6159c5d853eb9d6fc48b4bfa2b1a" |
|---|
| path | "Il2CppDumper/Il2Cpp/Il2Cpp.cs" |
|---|
| lines | "51-160" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Native side version refinement" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T17:28:20.256Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T17:41:17.195Z" |
|---|
| result | "partial" |
|---|
| method | "Read Il2Cpp.cs AutoPlusInit (51-118) and Init (120-160) at 4741d46: every branch and limit matches. Not covered by the claim: Program.Init passes config.ForceIl2CppVersion ? config.ForceVersion : metadata.Version into SetProperties, so a forced version replaces the metadata version before any of these refinements; and Init runs after AutoPlusInit so promotions can chain (e.g. 24.4 to 24.5 in AutoPlusInit, then Init sees 24.5 and stops)." |
|---|
| notes | "Core claim correct; only the forced-version override is missing." |
|---|
|
|
|---|