wiithon.formats.dol module
- class wiithon.formats.dol.DOL[source]
Bases:
object- find_arena_lo_setter()[source]
Finds the
lis r3address in the arenaLo setup sequence.Pattern (found empirically across multiple Wii games):
lis r3, X (3c 60 ?? ??) addi r3, r3, Y (38 63 ?? ??) addi r0, r3, 31 (38 03 ?? ??) rlwinm r3, r0, ? (54 03 ?? ??)
- Returns:
virtual address of the
lis.- Return type:
- patch_arena_lo(lis_vaddr, new_value)[source]
Patches the lis+ori pair at lis_vaddr to load new_value into r3.