Add tag for Clanker. (#17)

* Add tag for Clanker.

* Add transform ID to header.
This commit is contained in:
Darío
2025-12-21 00:02:05 -03:00
committed by GitHub
parent a4866d2f23
commit 84394461f7
2 changed files with 19 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
#include "patches.h"
#include "transform_ids.h"
extern void CC_func_80388760(Gfx **gfx, Mtx **mtx, Vtx **vtx);
// @recomp: Patched to assign an ID to Clanker.
RECOMP_PATCH void __overlay_cc_draw(Gfx **gfx, Mtx **mtx, Vtx **vtx) {
// @recomp Set the current transform ID to Clanker.
u32 prev_transform_id = cur_drawn_model_transform_id;
cur_drawn_model_transform_id = CLANKER_TRANSFORM_ID_START;
CC_func_80388760(gfx, mtx, vtx);
// @recomp Reset the current transform ID.
cur_drawn_model_transform_id = prev_transform_id;
}
+3
View File
@@ -51,6 +51,9 @@
// Snow: 0x00F41000 - 0x00F410FF
#define SNOW_TRANSFORM_ID_START 0x00F41000
// Snow: 0x00F42000 - 0x00F420FF
#define CLANKER_TRANSFORM_ID_START 0x00F42000
// Normal Particles: 0x01000000 - 0x01FFFFFF
#define NORMAL_PARTICLE_TRANSFORM_ID_START 0x01000000
#define NORMAL_PARTICLE_ID_MAX 0x01000000