Decompile creditsDrawSlide

This commit is contained in:
Ryan Dwyer
2022-06-26 21:10:43 +10:00
parent 24baee631b
commit 2d2bc50182
6 changed files with 549 additions and 2579 deletions
+35 -35
View File
@@ -1340,7 +1340,7 @@
"es": null
},
{
"id": "L_TITLE_134",
"id": "L_TITLE_136",
"en": "nintendo\n",
"gb": null,
"jp": null,
@@ -1350,7 +1350,7 @@
"es": null
},
{
"id": "L_TITLE_135",
"id": "L_TITLE_137",
"en": "mr arakawa\n",
"gb": null,
"jp": null,
@@ -1360,7 +1360,7 @@
"es": null
},
{
"id": "L_TITLE_136",
"id": "L_TITLE_138",
"en": "mike fukuda\n",
"gb": null,
"jp": null,
@@ -1370,7 +1370,7 @@
"es": null
},
{
"id": "L_TITLE_137",
"id": "L_TITLE_139",
"en": "don james\n",
"gb": null,
"jp": null,
@@ -1380,7 +1380,7 @@
"es": null
},
{
"id": "L_TITLE_138",
"id": "L_TITLE_140",
"en": "michael kelbaugh\n",
"gb": null,
"jp": null,
@@ -1390,7 +1390,7 @@
"es": null
},
{
"id": "L_TITLE_139",
"id": "L_TITLE_141",
"en": "howard lincoln\n",
"gb": null,
"jp": null,
@@ -1400,7 +1400,7 @@
"es": null
},
{
"id": "L_TITLE_140",
"id": "L_TITLE_142",
"en": "ken lobb\n",
"gb": null,
"jp": null,
@@ -1410,7 +1410,7 @@
"es": null
},
{
"id": "L_TITLE_141",
"id": "L_TITLE_143",
"en": "jacqualee story\n",
"gb": null,
"jp": null,
@@ -1420,7 +1420,7 @@
"es": null
},
{
"id": "L_TITLE_142",
"id": "L_TITLE_144",
"en": "gail tilden\n",
"gb": null,
"jp": null,
@@ -1430,7 +1430,7 @@
"es": null
},
{
"id": "L_TITLE_143",
"id": "L_TITLE_145",
"en": "copyright rare 2000\n",
"gb": null,
"jp": null,
@@ -1440,7 +1440,7 @@
"es": null
},
{
"id": "L_TITLE_144",
"id": "L_TITLE_146",
"en": "perfect dark and the pd device\n",
"gb": null,
"jp": null,
@@ -1450,7 +1450,7 @@
"es": null
},
{
"id": "L_TITLE_145",
"id": "L_TITLE_147",
"en": "are trademarks\n",
"gb": null,
"jp": null,
@@ -1460,7 +1460,7 @@
"es": null
},
{
"id": "L_TITLE_146",
"id": "L_TITLE_148",
"en": "rare\n",
"gb": null,
"jp": null,
@@ -1470,7 +1470,7 @@
"es": null
},
{
"id": "L_TITLE_147",
"id": "L_TITLE_149",
"en": "designs on the future\n",
"gb": null,
"jp": null,
@@ -1479,29 +1479,9 @@
"de": null,
"es": null
},
{
"id": "L_TITLE_148",
"en": "perfect dark is forever\n",
"gb": null,
"jp": null,
"it": null,
"fr": null,
"de": null,
"es": null
},
{
"id": "L_TITLE_149",
"en": null,
"gb": null,
"jp": null,
"it": null,
"fr": null,
"de": null,
"es": null
},
{
"id": "L_TITLE_150",
"en": null,
"en": "perfect dark is forever\n",
"gb": null,
"jp": null,
"it": null,
@@ -1518,5 +1498,25 @@
"fr": null,
"de": null,
"es": null
},
{
"id": "L_TITLE_152",
"en": null,
"gb": null,
"jp": null,
"it": null,
"fr": null,
"de": null,
"es": null
},
{
"id": "L_TITLE_153",
"en": null,
"gb": null,
"jp": null,
"it": null,
"fr": null,
"de": null,
"es": null
}
]
+492 -2523
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -1058,7 +1058,7 @@ Gfx *lvRender(Gfx *gdl)
gdl = vi0000b1a8(gdl);
gdl = vi0000b1d0(gdl);
gdl = viRenderViewportEdges(gdl);
gdl = creditsRender(gdl);
gdl = creditsDraw(gdl);
} else {
// Normal stages
s32 i;
+13 -11
View File
@@ -683,17 +683,19 @@
#define COVERFLAG_0100 0x0100
// L/C/R = left/centered/right
// big/med/sml is the font size
#define CREDITSTYLE_R_BIG_R_MED 1
#define CREDITSTYLE_C_BIG 2
#define CREDITSTYLE_C_MED 3
#define CREDITSTYLE_04 4
#define CREDITSTYLE_C_SML 5
#define CREDITSTYLE_L_BIG 7
#define CREDITSTYLE_R_MED 9
#define CREDITSTYLE_11 11
#define CREDITSTYLE_12 12
#define CREDITSTYLE_C_BIG_C_BIG 10
// SM/MD/LG = small/medium/large
#define CREDITSTYLE_CORETEAM 1 // LG C, MD R
#define CREDITSTYLE_HEADING1 2 // LG C, LG C
#define CREDITSTYLE_NAME1 3 // LG C, LG C
#define CREDITSTYLE_ASSISTANT 4 // MD C, MD C
#define CREDITSTYLE_COPYRIGHT 5 // SM C, SM C
#define CREDITSTYLE_UNUSED_06 6 // MD C, SM C
#define CREDITSTYLE_HEADING2 7 // LG L, LG L
#define CREDITSTYLE_UNUSED_08 8 // LG R, LG R
#define CREDITSTYLE_NAME2 9 // MD R, MD R
#define CREDITSTYLE_RAREDESIGNS 10 // LG C, LG C
#define CREDITSTYLE_SUPERVISOR 11 // MD L, MD R
#define CREDITSTYLE_EDITOR 12 // MD C, MD C
#define CREDITSTYLE_TERMINATOR 20
#define CROUCHPOS_SQUAT 0
+7 -7
View File
@@ -906,25 +906,25 @@ struct creditsdata {
void func0f137430(struct gfxvtx *vertices, f32 arg1, f32 arg2, f32 arg3, f32 arg4, f32 arg5, f32 arg6);
void creditsInitVertices(struct gfxvtx *vertices, s32 z);
void func0f137874(struct gfxvtx *vertices, u32 *colours, s32 arg2, s32 alpha, s32 arg4);
Gfx *creditsRenderBackgroundLayer(Gfx *gdl, u8 type, u8 layernum, f32 arg3, u32 alpha, s32 arg5);
Gfx *creditsDrawBackgroundLayer(Gfx *gdl, u8 type, u8 layernum, f32 arg3, u32 alpha, s32 arg5);
void creditsCopyBackgroundLayer(s32 srcindex, s32 dstindex, bool move);
Gfx *creditsRenderBackground(Gfx *gdl);
Gfx *creditsDrawBackground(Gfx *gdl);
f32 func0f1382e0(f32 range);
void creditsCreatePendingBgLayers(u32 mask);
Gfx *creditsClearFramebuffer(Gfx *gdl, u32 colour);
void creditsResetSprites(void);
void creditsTickSprites(void);
void creditsGetSpritePos(struct coord *pos, struct creditssprite *sprite, s32 spritenum);
Gfx *creditsRenderSprites(Gfx *gdl);
u32 func0f1399d0(void);
u32 func0f139d9c(void);
Gfx *creditsDrawSprites(Gfx *gdl);
Gfx *func0f1399d0(Gfx *gdl, s32 x, s32 y, char *text, struct fontchar *chars, struct font *font, f32 opacity, f32 speed, f32 spread);
Gfx *func0f139d9c(Gfx *gdl, s32 x, s32 y, char *text, struct fontchar *chars, struct font *font, f32 transfrac, s32 hdir, s32 vdir, s32 stretch);
void creditsResetSlides(void);
struct credit *creditGetByRow(s32 row);
void creditsTickSlide(void);
Gfx *func0f13a3ec(Gfx *gdl);
Gfx *creditsDrawSlide(Gfx *gdl);
void credits0f13ae04(Mtxf *mtx);
void creditsTick(void);
Gfx *creditsRender(Gfx *gdl);
Gfx *creditsDraw(Gfx *gdl);
void creditsReset(void);
void creditsRequestAltTitle(void);
+1 -2
View File
@@ -3476,8 +3476,7 @@ struct bootbufferthing {
struct credit {
u8 more : 1;
u8 notranin : 1;
u8 notranout : 1;
u8 retain : 2;
u8 durationindex : 2;
u8 style;
u16 text1;