summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2022-12-31 09:45:22 -0800
committerJasper St. Pierre <jstpierre@mecheye.net>2022-12-31 09:45:40 -0800
commitd7480d5d8bf998c2ece5cbd76374deb8e279e77c (patch)
tree03519576acc56f7fa3c065a60a85f9a2cea06f59 /src
parent2e2e08e78341a6a7f7a2847dd89235db07d72530 (diff)
Couple more J3DModel matches, d_kyeff/d_kyeff2 cleanups
Diffstat (limited to 'src')
-rw-r--r--src/d/d_kyeff.cpp23
-rw-r--r--src/d/d_kyeff2.cpp46
2 files changed, 22 insertions, 47 deletions
diff --git a/src/d/d_kyeff.cpp b/src/d/d_kyeff.cpp
index fc8551f2d3..209563d338 100644
--- a/src/d/d_kyeff.cpp
+++ b/src/d/d_kyeff.cpp
@@ -4,19 +4,18 @@
//
#include "d/d_kyeff.h"
+
#include "Z2AudioLib/Z2EnvSeMgr.h"
#include "d/com/d_com_inf_game.h"
+#include "f_op/f_op_actor.h"
+#include "f_op/f_op_kankyo.h"
+#include "OS/OSTime.h"
#include "d/kankyo/d_kankyo.h"
+#include "d/kankyo/d_kankyo_wether.h"
#include "dol2asm.h"
#include "dolphin/types.h"
//
-// Types:
-//
-
-struct kankyo_class {};
-
-//
// Forward References:
//
@@ -131,12 +130,16 @@ static asm int dKyeff_Create(kankyo_class* param_0) {
/* ############################################################################################## */
/* 803BC158-803BC16C -00001 0014+00 1/0 0/0 0/0 .data l_dKyeff_Method */
-SECTION_DATA static void* l_dKyeff_Method[5] = {
- (void*)dKyeff_Create__FP12kankyo_class, (void*)dKyeff_Delete__FP8dKyeff_c,
- (void*)dKyeff_Execute__FP8dKyeff_c, (void*)dKyeff_IsDelete__FP8dKyeff_c,
- (void*)dKyeff_Draw__FP8dKyeff_c,
+static leafdraw_method_class l_dKyeff_Method = {
+ (process_method_func)dKyeff_Create,
+ (process_method_func)dKyeff_Delete,
+ (process_method_func)dKyeff_Execute,
+ (process_method_func)dKyeff_IsDelete,
+ (process_method_func)dKyeff_Draw,
};
+extern "C" extern void* g_fopKy_Method[5 + 1 /* padding */];
+
/* 803BC16C-803BC198 -00001 0028+04 0/0 0/0 1/0 .data g_profile_KYEFF */
SECTION_DATA extern void* g_profile_KYEFF[10 + 1 /* padding */] = {
(void*)0xFFFFFFFD,
diff --git a/src/d/d_kyeff2.cpp b/src/d/d_kyeff2.cpp
index 2c501a7106..b419aa95a5 100644
--- a/src/d/d_kyeff2.cpp
+++ b/src/d/d_kyeff2.cpp
@@ -4,43 +4,11 @@
//
#include "d/d_kyeff2.h"
+#include "f_op/f_op_kankyo.h"
#include "d/kankyo/d_kankyo_wether.h"
#include "dol2asm.h"
#include "dolphin/types.h"
-//
-// Types:
-//
-
-struct kankyo_class {};
-
-//
-// Forward References:
-//
-
-extern "C" static void dKyeff2_Draw__FP9dKyeff2_c();
-extern "C" void execute__9dKyeff2_cFv();
-extern "C" static void dKyeff2_Execute__FP9dKyeff2_c();
-extern "C" static bool dKyeff2_IsDelete__FP9dKyeff2_c();
-extern "C" static void dKyeff2_Delete__FP9dKyeff2_c();
-extern "C" static void dKyeff2_Create__FP12kankyo_class();
-extern "C" extern void* g_profile_KYEFF2[10 + 1 /* padding */];
-
-//
-// External References:
-//
-
-extern "C" void dKyw_wether_init2__Fv();
-extern "C" void dKyw_wether_delete2__Fv();
-extern "C" void dKyw_wether_move_draw2__Fv();
-extern "C" void dKyw_wether_draw2__Fv();
-extern "C" extern void* g_fopKy_Method[5 + 1 /* padding */];
-extern "C" extern void* g_fpcLf_Method[5 + 1 /* padding */];
-
-//
-// Declarations:
-//
-
static bool dKyeff2_Draw(dKyeff2_c* ptr) {
dKyw_wether_draw2();
return true;
@@ -71,12 +39,16 @@ static int dKyeff2_Create(kankyo_class* ptr) {
/* ############################################################################################## */
/* 803BC198-803BC1AC -00001 0014+00 1/0 0/0 0/0 .data l_dKyeff2_Method */
-SECTION_DATA static void* l_dKyeff2_Method[5] = {
- (void*)dKyeff2_Create__FP12kankyo_class, (void*)dKyeff2_Delete__FP9dKyeff2_c,
- (void*)dKyeff2_Execute__FP9dKyeff2_c, (void*)dKyeff2_IsDelete__FP9dKyeff2_c,
- (void*)dKyeff2_Draw__FP9dKyeff2_c,
+static leafdraw_method_class l_dKyeff2_Method = {
+ (process_method_func)dKyeff2_Create,
+ (process_method_func)dKyeff2_Delete,
+ (process_method_func)dKyeff2_Execute,
+ (process_method_func)dKyeff2_IsDelete,
+ (process_method_func)dKyeff2_Draw,
};
+extern "C" extern void* g_fopKy_Method[5 + 1 /* padding */];
+
/* 803BC1AC-803BC1D8 -00001 0028+04 0/0 0/0 1/0 .data g_profile_KYEFF2 */
SECTION_DATA extern void* g_profile_KYEFF2[10 + 1 /* padding */] = {
(void*)0xFFFFFFFD,