mirror of
https://github.com/zeldaret/tww.git
synced 2026-08-21 14:07:29 -04:00
build fix
This commit is contained in:
@@ -21,7 +21,7 @@ typedef struct scene_process_profile_definition {
|
||||
class scene_class {
|
||||
public:
|
||||
/* 0x000 */ process_node_class mBase;
|
||||
/* 0x1AC */ process_method_class* mpMtd;
|
||||
/* 0x1AC */ scene_method_class* mpMtd;
|
||||
/* 0x1B0 */ scene_tag_class mScnTg;
|
||||
};
|
||||
|
||||
|
||||
@@ -12,16 +12,16 @@ static void fopScn_Draw(scene_class* i_this) {
|
||||
}
|
||||
|
||||
static void fopScn_Execute(scene_class* i_this) {
|
||||
fpcMtd_Execute(i_this->mpMtd, i_this);
|
||||
fpcMtd_Execute((process_method_class*)i_this->mpMtd, i_this);
|
||||
}
|
||||
|
||||
static s32 fopScn_IsDelete(void* i_this) {
|
||||
return fpcMtd_IsDelete(static_cast<scene_class*>(i_this)->mpMtd, i_this);
|
||||
return fpcMtd_IsDelete((process_method_class*)((scene_class*)i_this)->mpMtd, i_this);
|
||||
}
|
||||
|
||||
static s32 fopScn_Delete(void* i_this) {
|
||||
scene_class* scene = static_cast<scene_class*>(i_this);
|
||||
s32 ret = fpcMtd_Delete(scene->mpMtd, scene);
|
||||
s32 ret = fpcMtd_Delete((process_method_class*)scene->mpMtd, scene);
|
||||
if (ret == 1) {
|
||||
fopScnTg_QueueTo(&scene->mScnTg);
|
||||
}
|
||||
@@ -32,8 +32,7 @@ static s32 fopScn_Delete(void* i_this) {
|
||||
static s32 fopScn_Create(void* i_this) {
|
||||
scene_class* scene = static_cast<scene_class*>(i_this);
|
||||
if (fpcM_IsFirstCreating(i_this)) {
|
||||
scene_process_profile_definition* profile =
|
||||
(scene_process_profile_definition*)fpcM_GetProfile(i_this);
|
||||
scene_process_profile_definition* profile = (scene_process_profile_definition*)fpcM_GetProfile(i_this);
|
||||
scene->mpMtd = profile->mpMtd;
|
||||
fopScnTg_Init(&scene->mScnTg, i_this);
|
||||
fopScnTg_ToQueue(&scene->mScnTg);
|
||||
@@ -44,11 +43,13 @@ static s32 fopScn_Create(void* i_this) {
|
||||
}
|
||||
}
|
||||
|
||||
return fpcMtd_Create(scene->mpMtd, i_this);
|
||||
return fpcMtd_Create((process_method_class*)scene->mpMtd, i_this);
|
||||
}
|
||||
|
||||
leafdraw_method_class g_fopScn_Method = {
|
||||
(process_method_func)fopScn_Create, (process_method_func)fopScn_Delete,
|
||||
(process_method_func)fopScn_Execute, (process_method_func)fopScn_IsDelete,
|
||||
(process_method_func)fopScn_Create,
|
||||
(process_method_func)fopScn_Delete,
|
||||
(process_method_func)fopScn_Execute,
|
||||
(process_method_func)fopScn_IsDelete,
|
||||
(process_method_func)fopScn_Draw,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user