From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:IL2CPP global-metadata.dat" |
|---|
| claim | "Il2CppDumper's Metadata constructor refines a file whose version field is 24 into 24.1, 24.2 or 24.4 from the header and the tables, and the native side later promotes to 24.3 and 24.5 (see the native refinement fact). The checks in order: (1) sanity must be 0xFAB11BAF; (2) version must be 0..1000 else 'not valid metadata'; (3) version outside 16..31 throws NotSupported; (4) if version == 24: if header.stringLiteralOffset == 264 the version becomes 24.2 (the 264-byte header layout, header re-read), otherwise the image table is read and if any image token != 1 the version becomes 24.1; (5) if the version is 24.2 and assembliesSize / 68 < image count it becomes 24.4; (6) if the version is 24.1 and assembliesSize / 64 == image count, assemblies are read with the 24.4 layout and the version is then set back to 24.1. A 24.0 file is one with 272-byte header and all image tokens equal to 1." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:IL2CPP global-metadata.dat" |
|---|
| observed_in | |
|---|
|
|---|
| data | | trigger | "metadata header version field == 24" |
|---|
| effect | "sub-version chosen as 24.0, 24.1, 24.2 or 24.4" |
|---|
| function | "Metadata constructor (Metadata.cs)" |
|---|
| condition | "stringLiteralOffset == 264; any image token != 1; assembliesSize / 68 < imageDefs.Length; assembliesSize / 64 == imageDefs.Length" |
|---|
| not_read | "Il2CppInspector's own detection (AGPL, not read)" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "read the whole constructor up to assemblyDefs; 264 equals the computed 24.2 header length (MetadataClass.cs 5-109 summed), 272 the computed 24.0/24.1 length" |
|---|
| repo | "https://github.com/Perfare/Il2CppDumper" |
|---|
| commit | "4741d46ba9cd6159c5d853eb9d6fc48b4bfa2b1a" |
|---|
| path | "Il2CppDumper/Il2Cpp/Metadata.cs" |
|---|
| lines | "45-95" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Metadata version 24 sub-version detection" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T17:28:20.186Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T17:41:17.128Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read the whole Metadata constructor (Metadata.cs 38-95) at 4741d46: sanity, 0..1000, 16..31 checks; stringLiteralOffset==264 -> 24.2; any image token != 1 -> 24.1; 24.2 with assembliesSize/68 < images -> 24.4; 24.1 with /64 == images -> temporary 24.4 for the assembly read, reset to 24.1. All as claimed." |
|---|
|
|
|---|