Skip to content

Commit 84e5605

Browse files
committed
WoAh I nO lOnGeR cRaSh WhEn I dRoP aLl My CrAyOnS
1 parent 5d138d6 commit 84e5605

File tree

3 files changed

+793
-792
lines changed

3 files changed

+793
-792
lines changed

base-hack/src/f3dex2.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,18 +103,19 @@ Gfx* drawTextContainer(Gfx* dl, int style, float x, float y, char* str, int red,
103103
return drawText(dl,style,x,y,str,red,green,blue,opacity);
104104
}
105105

106+
#define CHAR_LIMIT 0x60
106107
static char* character_recoloring_str = 0;
107108
static char use_character_recoloring = 0;
108-
static char char_color_data[0x40];
109-
static unsigned char char_opacity_data[0x40];
109+
static char char_color_data[CHAR_LIMIT];
110+
static unsigned char char_opacity_data[CHAR_LIMIT];
110111

111112
void setCharacterRecoloring(int output, char* stored_str) {
112113
use_character_recoloring = output;
113114
character_recoloring_str = stored_str;
114115
}
115116

116117
void wipeTextColorData(void) {
117-
for (int i = 0; i < 0x40; i++) {
118+
for (int i = 0; i < CHAR_LIMIT; i++) {
118119
char_color_data[i] = 0;
119120
char_opacity_data[i] = 0xFF;
120121
}

static/patches/shrink-dk64.bps

116 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)