From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:WAD (Doom engine)" |
|---|
| claim | "W_CheckNumForName upper-cases the requested name (not the stored names), compares it as two 32-bit integers and scans the merged directory from the last lump backwards, so a PWAD loaded later overrides IWAD lumps of the same name; it returns -1 when not found and W_GetNumForName then aborts." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:WAD (Doom engine)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | function | "W_CheckNumForName" |
|---|
| trigger | "any lump lookup by name" |
|---|
| effect | "index of the LAST lump with that name, or -1" |
|---|
| condition | "stored lump names must already be upper case to match" |
|---|
|
|---|
| evidence | | type | "documentation" |
|---|
| detail | "linuxdoom-1.10/w_wad.c W_CheckNumForName (strupr on the request, backwards loop 'so patch lump files take precedence'); W_AddFile copies names without case conversion." |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Lump lookup: last match wins" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T03:43:15.849Z" |
|---|
| verifications | |
|---|