1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-08-14 19:10:25 +00:00

Remove THIS macro (#1047)

* remove THIS

* fix

* forgot dorf
This commit is contained in:
fig02 2021-12-04 11:33:00 -05:00 committed by GitHub
parent 68899c2e33
commit e635e34265
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
433 changed files with 1996 additions and 2859 deletions

View file

@ -8,8 +8,6 @@
#define FLAGS 0x00000030
#define THIS ((DemoShd*)thisx)
void DemoShd_Init(Actor* thisx, GlobalContext* globalCtx);
void DemoShd_Destroy(Actor* thisx, GlobalContext* globalCtx);
void DemoShd_Update(Actor* thisx, GlobalContext* globalCtx);
@ -36,7 +34,7 @@ void DemoShd_SetupAction(DemoShd* this, DemoShdActionFunc actionFunc) {
}
void DemoShd_Init(Actor* thisx, GlobalContext* globalCtx) {
DemoShd* this = THIS;
DemoShd* this = (DemoShd*)thisx;
this->unk_14C = 0;
DemoShd_SetupAction(this, func_80991298);
@ -93,13 +91,13 @@ void func_80991298(DemoShd* this, GlobalContext* globalCtx) {
}
void DemoShd_Update(Actor* thisx, GlobalContext* globalCtx) {
DemoShd* this = THIS;
DemoShd* this = (DemoShd*)thisx;
this->actionFunc(this, globalCtx);
}
void DemoShd_Draw(Actor* thisx, GlobalContext* globalCtx) {
DemoShd* this = THIS;
DemoShd* this = (DemoShd*)thisx;
s32 pad;
u32 unk_14E = this->unk_14E;