08-25-2020, 04:07 PM
(This post was last modified: 03-06-2021, 12:23 PM by CLF78.
Edit Reason: Update code
)
Mega Cloud [_tZ]
This version of the Mega Thundercloud code is shorter and isn't affected by the "item loss" bug.
NTSC-U
C2579DCC 00000006
3D808078 618CF6A8
7D8803A6 4E800021
3C60809B 8803F0B1
2C000000 4182000C
38600008 3880000C
60000000 00000000
PAL
C2580630 00000006
3D808079 618C86B4
7D8803A6 4E800021
3C60809C 880338B9
2C000000 4182000C
38600008 3880000C
60000000 00000000
NTSC-J
C257FFB0 00000006
3D808079 618C7D20
7D8803A6 4E800021
3C60809C 88032919
2C000000 4182000C
38600008 3880000C
60000000 00000000
NTSC-K
C256E688 00000006
3D808078 618C6A74
7D8803A6 4E800021
3C60809B 88031EF9
2C000000 4182000C
38600008 3880000C
60000000 00000000
Source:
Code creator: _tZ
This version of the Mega Thundercloud code is shorter and isn't affected by the "item loss" bug.
NTSC-U
C2579DCC 00000006
3D808078 618CF6A8
7D8803A6 4E800021
3C60809B 8803F0B1
2C000000 4182000C
38600008 3880000C
60000000 00000000
PAL
C2580630 00000006
3D808079 618C86B4
7D8803A6 4E800021
3C60809C 880338B9
2C000000 4182000C
38600008 3880000C
60000000 00000000
NTSC-J
C257FFB0 00000006
3D808079 618C7D20
7D8803A6 4E800021
3C60809C 88032919
2C000000 4182000C
38600008 3880000C
60000000 00000000
NTSC-K
C256E688 00000006
3D808078 618C6A74
7D8803A6 4E800021
3C60809B 88031EF9
2C000000 4182000C
38600008 3880000C
60000000 00000000
Source:
Code:
# Inject (PAL, NTSC-U, NTSC-J, NTSC-K): 0x80580630, 0x80579DCC, 0x8057FFB0, 0x8056E688
.set region, ''
.if (region == 'P' || region == 'p')
.set MegaFunc, 0x807986B4
.set isOnlineRace, 0x809C38B9
.elseif (region == 'E' || region == 'e' || region == 'U' || region == 'u')
.set MegaFunc, 0x8078F6A8
.set isOnlineRace, 0x809BF0B1
.elseif (region == 'J' || region == 'j')
.set MegaFunc, 0x80797D20
.set isOnlineRace, 0x809C2919
.elseif (region == 'K' || region == 'k')
.set MegaFunc, 0x80786A74
.set isOnlineRace, 0x809B1EF9
.else
.err
.endif
# Call MegaFunc
lis r12, MegaFunc@h
ori r12, r12, MegaFunc@l
mtlr r12
blrl
# Check if it's an online race
lis r3, isOnlineRace@h
lbz r0, isOnlineRace@l(r3)
cmpwi r0, 0
beq end
# Stuff
li r3, 8
li r4, 12
# Return
end:
Code creator: _tZ