Disable Pause Buffering [JoshuaMK]
#1
Disable Pause Buffering [JoshuaMK]

This code forces a time period after pausing before the game can be paused again, including a 4 frame period after unpausing where wheelies and handling are disabled. This only takes effect in Time Trials.



(NTSC-U)
C0000000 0000000B
3D808000 818C01FC
280C0000 40820048
3D808140 896C1234
2C0B0001 41820018
38600000 A16C1230
280B0000 41820020
396B0001 2B8BXXXX
2B0B0005 41BC0008
7C6B1B78 41B90008
38600001 B06C1242
B16C1230 4E800020
C283B4A0 00000002
3D808140 98040389
980C1234 00000000
C283B4C4 00000002
3D808140 98040389
980C1234 00000000
C2635FA8 00000002
3CA08000 908501FC
7CA40050 00000000
048371A4 4B7E974D
04581FBC 7CA00039
04574110 38C00000
2D401230 00000000
048371A4 60000000
E0000000 80008000
29401242 00000001
04581FBC 60000000
04574110 60000000
E0000000 80008000

(PAL)
C0000000 0000000B
3D808000 818C01FC
280C0000 40820048
3D808140 896C1234
2C0B0001 41820018
38600000 A16C1230
280B0000 41820020
396B0001 2B8BXXXX
2B0B0005 41BC0008
7C6B1B78 41B90008
38600001 B06C1242
B16C1230 4E800020
C28600EC 00000002
3D808140 98040389
980C1234 00000000
C2860110 00000002
3D808140 98040389
980C1234 00000000
C25F2E8C 00000002
3CA08000 908501FC
7CA40050 00000000
04858C34 4B7C881D
045887E0 7CA00039
0457A974 38C00000
2D401230 00000000
04858C34 60000000
E0000000 80008000
29401242 00000001
045887E0 60000000
0457A974 60000000
E0000000 80008000

(NTSC-J)
C0000000 0000000B
3D808000 818C01FC
280C0000 40820048
3D808140 896C1234
2C0B0001 41820018
38600000 A16C1230
280B0000 41820020
396B0001 2B8BXXXX
2B0B0005 41BC0008
7C6B1B78 41B90008
38600001 B06C1242
B16C1230 4E800020
C285F758 00000002
3D808140 98040389
980C1234 00000000
C285F77C 00000002
3D808140 98040389
980C1234 00000000
C25F2768 00000002
3CA08000 908501FC
7CA40050 00000000
048582A0 4B7C90D5
04588160 7CA00039
0457A2F4 38C00000
2D401230 00000000
048582A0 60000000
E0000000 80008000
29401242 00000001
04588160 60000000
0457A2F4 60000000
E0000000 80008000

(NTSC-K)
C0000000 0000000B
3D808000 818C01FC
280C0000 40820048
3D808140 896C1234
2C0B0001 41820018
38600000 A16C1230
280B0000 41820020
396B0001 2B8BXXXX
2B0B0005 41BC0008
7C6B1B78 41B90008
38600001 B06C1242
B16C1230 4E800020
C284E4AC 00000002
3D808140 98040389
980C1234 00000000
C284E4D0 00000002
3D808140 98040389
980C1234 00000000
C25E12AC 00000002
3CA08000 908501FC
7CA40050 00000000
04846FF4 4B7DA4C5
04576838 7CA00039
045689CC 38C00000
2D401230 00000000
04846FF4 60000000
E0000000 80008000
29401242 00000001
04576838 60000000
045689CC 60000000
E0000000 80008000



XXXX = How long untilĀ pausingĀ is re-enabled in 1/60 seconds



#ASM

#~~~~~#
#C0 TYPE#
#~~~~~#

lis r12, 0x8000
lwz r12, 0x1FC (r12)
cmplwi r12, 0
bne TTs
lis r12, 0x8140
lbz r11, 0x1234 (r12)
cmpwi r11, 1
beq compare
li r3, 0
lhz r11, 0x1230 (r12)
cmplwi r11, 0
beq disable_wheelie_flag
addi r11, r11, 1
compare:
cmplwi cr7, r11, 300
cmplwi cr6, r11, 5
blt+ cr7, dont_reset
mr r11, r3
dont_reset:
bgt+ cr6, disable_wheelie_flag
li r3, 1
disable_wheelie_flag:
sth r3, 0x1242 (r12)
sth r11, 0x1230 (r12)
TTs:

#~~~~~~~~~~~~#
#Inject > 80635FA8#
#~~~~~~~~~~~#

lis r5, 0x8000
stw r4, 0x1FC (r5)
sub r5, r0, r4

#~~~~~~~~~~~~#
#Inject > 8083B4A0#
#~~~~~~~~~~~#

lis r12, 0x8140
stb r0, 0x389 (r4)
stb r0, 0x1234 (r12)

#~~~~~~~~~~~~#
#Inject > 8083B4C4#
#~~~~~~~~~~~#

lis r12, 0x8140
stb r0, 0x389 (r4)
stb r0, 0x1234 (r12)



Code Creator: JoshuaMK
Super Mario Eclipse, what Super Mario Sunshine could've been.
Reply
#2
deleted
Reply
#3
^This code has issues on Dolphin for some reason, why it is I don't know. The NTSC-U version works on a Wii, so try testing this code on a real Wii and see if it works.

Also, set the delay value to something high like 0300 so you know when it is working
Super Mario Eclipse, what Super Mario Sunshine could've been.
Reply
#4
ill go ahead and test all other 3 regions on console.
Reply
#5
Thank ya sir
Super Mario Eclipse, what Super Mario Sunshine could've been.
Reply
#6
all 3 other regions simply black screen upon boot
Reply
#7
okk I'll look into it

On Dolphin the PAL code booted fine, are you sure you have it put in right on the wii? Or are you saying on track boot?
Super Mario Eclipse, what Super Mario Sunshine could've been.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)