# Original code by Ralf @ GC-Forever # https://www.gc-forever.com/forums/viewtopic.php?t=2050 # https://www.gc-forever.com/forums/viewtopic.php?t=2049 # Xbox port by fuzziqersoftware .meta visibility="all" .meta name="Item pickup" .meta description="Prevents picking\nup items unless you\nhold the Z button" entry_ptr: reloc0: .offsetof start start: .include WriteCodeBlocks .versions 3OJ2 3OJ3 3OJ4 3OJ5 3OE0 3OE1 3OE2 3OP0 .label hook_loc, 0x8000B938 .data hook_loc .deltaof hook_start, hook_end .address hook_loc hook_start: addi r3, r28, 0x0550 li r4, 0x0100 bl [] cmpwi r3, 0 beq skip mr r3, r28 b [] skip: b [] hook_end: .label hook_call, .data hook_call .data 0x00000004 .address hook_call b hook_start .data .data 0x00000004 li r4, 8 .versions 4OED 4OEU 4OJB 4OJD 4OJU 4OPD 4OPU .data .data 0x07 .binary E8880100009090 .data .data 0x0A .binary 8B866C05000085C0EB46 .data .data 0x09 .binary 74038A40013408EB46 .data .data 0x0A .binary 7507F68624030000E0C3 .data .data 0x01 .binary 00 .all_versions .data 0x00000000 .data 0x00000000