Repository navigation
Expand file tree
/
Copy pathffight_ae_charsel.asm
More file actions
179 lines (131 loc) · 4.59 KB
/
Copy pathffight_ae_charsel.asm
File metadata and controls
179 lines (131 loc) · 4.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
;==============================
; Player namebar/portraits draw
; org 0x001D78
; jmp hijack_namebar_draw_player
;==============================
; Set player OBJ palettes on click-in
org 0x00A0FE
jmp hijack_charsel_commit_selection
;-------------------------------------------------------
; Fix player's on-fire color conflicting with custom palettes (1/2)
org 0xAE16
jmp hijack_charsel_falling_setpalette
;-------------------------------------------------------
; Fix player's on-fire color conflicting with custom palettes (2/2)
org 0xAEF2
jmp hijack_charsel_falling_resetpalette
;-------------------------------------------------------
; Fix player's on-fire color conflicting with custom palettes (1/2)
org 0xB0BE
jmp hijack_charsel_fallingdead_setpalette
;-------------------------------------------------------
; Fix player's on-fire color conflicting with custom palettes (2/2)
org 0xB196
jmp hijack_charsel_fallingdead_resetpalette
;-------------------------------------------------------
;==============================
; Ingame charsel 1P joypad reads (for added color selection)
org 0x015AA8
jmp hijack_ingame_charsel_1p_readjoy
;==============================
; Ingame charsel 2P joypad reads (for added color selection)
org 0x016316
jmp hijack_ingame_charsel_2p_readjoy
;==============================
; Fixes player colors for ending demo
org 0x20FAA
jmp hijack_charsel_ending_colors
org 0x187e8
jmp hijack_charsel_ending_colors_2
org 0x189CA
jmp hijack_charsel_ending_colors_3
;==============================
; Character Select Screen
org 0x05C5D0
jmp xcharsel_compare_1p2p
;-------------------------------------------------------
; load new portrait palettes
org 0x5C3AE
jmp hijack_charsel_loadpalettes
;-------------------------------------------------------
; clear SCROLL2 and SCROLL3 to blank the backgrounds and portraits
org 0x5C3B6
; jmp xcharsel_clearportraits
org 0xC93C8
dc.b $0, $0
org 0xC97B8
dc.b $0, $0
;-------------------------------------------------------
; disable default weight/height text draw
org 0x5C3BE
NOP
NOP
NOP
NOP
;-------------------------------------------------------
; disable default character names text draw
org 0x5C3CE
NOP
NOP
NOP
NOP
;-------------------------------------------------------
org 0x05C420
jmp hijack_char_select_handler
;-------------------------------------------------------
org 0x05C57C
jmp hijack_charsel_inputcheck_joystick
;-------------------------------------------------------
org 0x05C47E
jmp hijack_p1_char_select_check_click_in
;-------------------------------------------------------
org 0x05C6C8
jmp hijack_border_palette
;-------------------------------------------------------
org 0x05C6DC
jmp hijack_border_data_pointer_calc
;-------------------------------------------------------
org 0x5C71C
jmp hijack_border_draw_portraits
;-------------------------------------------------------
org 0x05C45E
jmp hijack_char_sel_assign_player
;-------------------------------------------------------
org 0x05C58E ; disable old portrait clear subroutine that was causing issues with new charsel setup
NOP
NOP
;-------------------------------------------------------
org 0x05C5B2 ; disable old portrait clear subroutine that was causing issues with new charsel setup
NOP
NOP
;-------------------------------------------------------
org 0x05C636
jmp hijack_char_sel_start_check
;-------------------------------------------------------
org 0x06450C
jmp hijack_load_level_palettes
;-------------------------------------------------------
org 0x015B30 ; 1p portrait draw
jmp hijack_ingame_charsel_portraitdraw
org 0x015B96 ; 1p portrait clear
jmp hijack_ingame_charsel_portraitclear
org 0x01639E ; 2p portrait draw
jmp hijack_ingame_charsel_portraitdraw
org 0x016404 ; 2p portrait clear
jmp hijack_ingame_charsel_portraitclear
;-------------------------------------------------------
; Override color for the attract mode bio screen portraits
org 0xC5E00
incbin palettes/pal_charsel_00_b.bin
;-------------------------------------------------------
; New red palette for 1P charsel border color
org 0xC3BC0
incbin palettes/pal_charsel_border_1p.bin
;-------------------------------------------------------
; Fix for elevator/ingame charsel palette conflict.
; Overwrites unused FBI Crest palette ($0D) with elevator's palette.
org 0x0C29A0
incbin palettes/pal_rolento_elevator.bin
; Modified SCROLL1 data for Rolento's elevator. Color attributes changed to $0D
org 0x0CA7E0
incbin bgmaps/scroll1_rolento_elevator_new.bin