mirror of
https://github.com/BanjoRecomp/BanjoRecomp
synced 2026-05-28 07:54:59 -04:00
Add tag for Clanker. (#17)
* Add tag for Clanker. * Add transform ID to header.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user