@@ -70,6 +70,114 @@ Gameplay_InitSkybox:
70
70
nop
71
71
.endarea
72
72
73
+ ;==================================================================================================
74
+ ; Increase Number of Audio Banks, and Audiotable (samples)
75
+ ;==================================================================================================
76
+
77
+ .org 0x800B8888
78
+ lui t2, hi(AUDIOBANK_TABLE_EXTENDED)
79
+ .org 0x800B8898
80
+ addiu t2, t2, lo(AUDIOBANK_TABLE_EXTENDED)
81
+
82
+ ; Hacks to increase the number of audio banks from 0x30 to 0x80
83
+ ; Hacks in AudioHeap_ResetLoadStatus
84
+ ; This loop is annoying because it hardcodes the start and end addresses of fontLoadStatus array instead of calculating it.
85
+ ; v0 - start of array
86
+ ; v1 - end of array
87
+ .org 0x800B3540
88
+ ; Replaces
89
+ ; lui v1, 0x8012
90
+ ; lui v0, 0x8012
91
+ ; addiu v0, v0 0x5660
92
+ ; addiu v1, v1, 0x5630
93
+ li v1, FONTLOADSTATUS_EXTENDED
94
+ li v0, FONTLOADSTATUS_EXTENDED + 0x80
95
+
96
+ .org 0x800B3554
97
+ ; Replaces:
98
+ ; lbu t6, 0x3468(v1)
99
+ lbu t6, 0x00(v1)
100
+
101
+ .org 0x800B3560
102
+ ; Replaces:
103
+ ; sb r0, 0x3468(v1)
104
+ sb r0, 0x00(v1)
105
+
106
+ ; Hacks in AudioHeap_PopPersistentCache (I think)
107
+ .org 0x800B3AB8
108
+ ; Replaces:
109
+ ; lui t7, 0x8013
110
+ ; addiu t7, t7, 0x8A98
111
+ li t7, FONTLOADSTATUS_EXTENDED
112
+
113
+ ; Hacks in AudioHeap_AllocCached (I think)
114
+ .org 0x800B3F00
115
+ ; Replaces:
116
+ ; lui t3, 0x8013
117
+ lui t3, hi(FONTLOADSTATUS_EXTENDED)
118
+ .org 0x800B3F0C
119
+ ; Replaces:
120
+ ; addiu t3, t3, 0x8A98
121
+ addiu t3, t3, lo(FONTLOADSTATUS_EXTENDED)
122
+
123
+ ; Hacks in AudioLoad_IsFontLoadComplete
124
+ .org 0x800B6E8C
125
+ ; Replaces:
126
+ ; lui t6, 0x8013
127
+ ; addu t6, t6, a1
128
+ ; lbu t6, 0x8A98(t6)
129
+ lui t6, hi(FONTLOADSTATUS_EXTENDED)
130
+ addu t6, t6, a1
131
+ lbu t6, lo(FONTLOADSTATUS_EXTENDED)(t6)
132
+ .org 0x800B6EB4
133
+ ; Replaces:
134
+ ; lui t7, 0x8013
135
+ ; addu t7, t7, v0
136
+ ; lbu t7, 0x8A98(t7)
137
+ lui t7, hi(FONTLOADSTATUS_EXTENDED)
138
+ addu t7, t7, v0
139
+ lbu t7, lo(FONTLOADSTATUS_EXTENDED)(t7)
140
+
141
+ ; Hacks in AudioLoad_SetFontLoadStatus
142
+ .org 0x800B6FE0
143
+ ; Replaces:
144
+ ; lui t6, 0x8012
145
+ ; addiu t6, t6, 0x5630
146
+ ; skip
147
+ ; lbu t7, 0x3468(v0)
148
+ ; skip
149
+ ; skip
150
+ ; skip
151
+ ; sb a1, 0x3468(v0)
152
+ li t6, FONTLOADSTATUS_EXTENDED
153
+ .skip 4
154
+ lbu t7, 0x00(v0)
155
+ .skip 12
156
+ sb a1 , 0x00(v0)
157
+
158
+ ; Hacks in AudioLoad_SyncLoadFont
159
+ .org 0x800B7A2C
160
+ ; Replaces:
161
+ ; lui a1, 0x8012
162
+ ; addiu a1, a1, 0x5630
163
+ ; addu t6, a1, v0
164
+ jal AudioLoad_SyncLoadFont_StatusHack
165
+ lui a1 , 0x8012
166
+ nop
167
+ lbu t7, 0x00(t6)
168
+
169
+ ; Hacks in AudioLoad_AsyncLoadInner
170
+ .org 0x800B82D0
171
+ ; Replaces:
172
+ ; lui t7, 0x8013
173
+ lui t7, hi(FONTLOADSTATUS_EXTENDED)
174
+ .org 0x800B8310
175
+ ; Replaces:
176
+ ; addu t7, t7, v0
177
+ ; lbu t7, 0x8A98(t7)
178
+ addu t7, t7, v0
179
+ lbu t7, lo(FONTLOADSTATUS_EXTENDED)(t7)
180
+
73
181
;==================================================================================================
74
182
; Don't Use Sandstorm Transition if gameplay_field_keep is not loaded
75
183
;==================================================================================================
@@ -2616,6 +2724,14 @@ courtyard_guards_kill:
2616
2724
.orga 0xB2E82C ; in memory 0x800B88CC
2617
2725
lw a1 , 0x8000B188
2618
2726
2727
+ ;==================================================================================================
2728
+ ; Load Audiobank using dmadata
2729
+ ;==================================================================================================
2730
+ ; Replaces: lui a1, 0x0001
2731
+ ; addiu a1, a1, 0xD390
2732
+ .orga 0xB2E840 ; in memory 0x800B88E0
2733
+ lw a1 , 0x8000B178
2734
+
2619
2735
;==================================================================================================
2620
2736
; Load Audiotable using dmadata
2621
2737
;==================================================================================================
0 commit comments