mirror of
https://github.com/ACreTeam/ac-decomp
synced 2026-06-26 08:24:34 -04:00
Match ac_my_room.c
This commit is contained in:
File diff suppressed because it is too large
Load Diff
+2274
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
+4
-5
@@ -219,14 +219,13 @@ extern s8 sAdo_GetRhythmDelay(u32 p) {
|
||||
return Na_GetRhythmDelay(p);
|
||||
}
|
||||
|
||||
extern f32 sAdo_GetRhythmInfo(u32 p) {
|
||||
extern void sAdo_GetRhythmInfo(TempoBeat_c* rhythm) {
|
||||
|
||||
return Na_GetRhythmInfo(p);
|
||||
Na_GetRhythmInfo(rhythm);
|
||||
}
|
||||
|
||||
extern void sAdo_SetRhythmInfo(f32 p) {
|
||||
|
||||
Na_SetRhythmInfo(p);
|
||||
extern void sAdo_SetRhythmInfo(TempoBeat_c* rhythm) {
|
||||
Na_SetRhythmInfo(rhythm);
|
||||
}
|
||||
|
||||
extern int sAdo_InstCountGet() {
|
||||
|
||||
+3
-3
@@ -77,7 +77,7 @@ extern void famicom_emu_main(GAME* famicom) {
|
||||
|
||||
if (famicom_done == 0) {
|
||||
if (famicom_rom_load_check() < 0) {
|
||||
Common_Set(famicom_2DBAC, Common_Get(famicom_2DBAC) | 1);
|
||||
Common_Set(my_room_message_control_flags, Common_Get(my_room_message_control_flags) | 1);
|
||||
famicom_done = 1;
|
||||
famicom_done_countdown = 0;
|
||||
} else {
|
||||
@@ -152,7 +152,7 @@ extern void famicom_emu_init(GAME* game) {
|
||||
my_alloc_init(game, freeXfbBase, freeXfbSize);
|
||||
|
||||
if (famicom_init(rom_id, &my_malloc_func, player) != 0) {
|
||||
Common_Set(famicom_2DBAC, Common_Get(famicom_2DBAC) | 1);
|
||||
Common_Set(my_room_message_control_flags, Common_Get(my_room_message_control_flags) | 1);
|
||||
return_emu_game(game);
|
||||
}
|
||||
}
|
||||
@@ -161,7 +161,7 @@ extern void famicom_emu_cleanup(GAME* game) {
|
||||
JC_JFWDisplay_startFadeIn(JC_JFWDisplay_getManager(), 1);
|
||||
|
||||
if (famicom_cleanup() != 0) {
|
||||
Common_Set(famicom_2DBAC, Common_Get(famicom_2DBAC) | 2);
|
||||
Common_Set(my_room_message_control_flags, Common_Get(my_room_message_control_flags) | 2);
|
||||
}
|
||||
|
||||
my_alloc_cleanup();
|
||||
|
||||
+11
-30
@@ -57,7 +57,7 @@ static void fIJHOUI_mv(FTR_ACTOR* ftr_actor, ACTOR* my_room_actor, GAME* game, u
|
||||
cKF_SkeletonInfo_R_c* keyf = &ftr_actor->keyframe;
|
||||
FTR_ACTOR* parent;
|
||||
|
||||
parent = aMR_GetParentFactor();
|
||||
parent = aMR_GetParentFactor(ftr_actor, my_room_actor);
|
||||
fIJHOUI_Status2SetMode(ftr_actor, ftr_actor);
|
||||
|
||||
if (parent != NULL) {
|
||||
@@ -88,14 +88,14 @@ static void fIJHOUI_mv(FTR_ACTOR* ftr_actor, ACTOR* my_room_actor, GAME* game, u
|
||||
ftr_actor->dynamic_work_s[0] = ftr_actor->state;
|
||||
}
|
||||
|
||||
static int fIJHOUI_DrawBefore(GAME* game, cKF_SkeletonInfo_R_c* keyf, int jointNum, Gfx** joint, u8* jointFlag, void* arg,
|
||||
s_xyz* joint1, xyz_t* trans) {
|
||||
static int fIJHOUI_DrawBefore(GAME* game, cKF_SkeletonInfo_R_c* keyf, int jointNum, Gfx** joint, u8* jointFlag,
|
||||
void* arg, s_xyz* joint1, xyz_t* trans) {
|
||||
FTR_ACTOR* actor = (FTR_ACTOR*)arg;
|
||||
|
||||
int offset = 10430.378f * (0.017453292f * actor->dynamic_work_f[1]);
|
||||
|
||||
if (jointNum == 3) {
|
||||
MY_ROOM_ACTOR* my_room_actor;
|
||||
ACTOR* my_room_actor;
|
||||
int exists = FALSE;
|
||||
|
||||
if ((Common_Get(clip).my_room_clip != NULL && Common_Get(clip).my_room_clip->my_room_actor_p != NULL)) {
|
||||
@@ -114,15 +114,15 @@ static int fIJHOUI_DrawBefore(GAME* game, cKF_SkeletonInfo_R_c* keyf, int jointN
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int fIJHOUI_DrawAfter(GAME* game, cKF_SkeletonInfo_R_c* keyf, int jointNum, Gfx** joint, u8* jointFlag, void* arg,
|
||||
s_xyz* joint1, xyz_t* trans) {
|
||||
static int fIJHOUI_DrawAfter(GAME* game, cKF_SkeletonInfo_R_c* keyf, int jointNum, Gfx** joint, u8* jointFlag,
|
||||
void* arg, s_xyz* joint1, xyz_t* trans) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
static void fIJHOUI_dw(FTR_ACTOR* ftr_actor, ACTOR* my_room_actor, GAME* game, u8* data) {
|
||||
Mtx* mtx = ftr_actor->skeleton_mtx[game->frame_counter & 1];
|
||||
|
||||
OPEN_DISP(game->graph);
|
||||
|
||||
OPEN_DISP(game->graph);
|
||||
|
||||
gSPMatrix(NEXT_POLY_OPA_DISP, _Matrix_to_Mtx_new(game->graph), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
||||
|
||||
@@ -131,29 +131,10 @@ static void fIJHOUI_dw(FTR_ACTOR* ftr_actor, ACTOR* my_room_actor, GAME* game, u
|
||||
}
|
||||
|
||||
static aFTR_vtable_c fIJHOUI_func = {
|
||||
&fIJHOUI_ct,
|
||||
&fIJHOUI_mv,
|
||||
&fIJHOUI_dw,
|
||||
NULL,
|
||||
NULL,
|
||||
&fIJHOUI_ct, &fIJHOUI_mv, &fIJHOUI_dw, NULL, NULL,
|
||||
};
|
||||
|
||||
aFTR_PROFILE iam_ike_jny_houi01 = {
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
40.0f,
|
||||
0.01f,
|
||||
aFTR_SHAPE_TYPEA,
|
||||
mCoBG_FTR_TYPEA,
|
||||
0,
|
||||
2,
|
||||
0,
|
||||
0,
|
||||
&fIJHOUI_func,
|
||||
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 40.0f, 0.01f, aFTR_SHAPE_TYPEA, mCoBG_FTR_TYPEA,
|
||||
0, 2, 0, 0, &fIJHOUI_func,
|
||||
};
|
||||
|
||||
+502
-556
File diff suppressed because it is too large
Load Diff
+4
-4
@@ -2019,9 +2019,9 @@ extern void mRmTp_MakeFamicom_Fdebug() {
|
||||
u16 ftr_idx;
|
||||
int res;
|
||||
Clip_c* clip;
|
||||
GAME_PLAY* play = (GAME_PLAY*)gamePT;
|
||||
GAME* game = gamePT;
|
||||
|
||||
if ((gamePT->pads[PAD1].on.button & BUTTON_Z) == BUTTON_Z && play != NULL) {
|
||||
if ((gamePT->pads[PAD1].on.button & BUTTON_Z) == BUTTON_Z && game != NULL) {
|
||||
clip = Common_GetPointer(clip);
|
||||
|
||||
if (clip->my_room_clip != NULL) {
|
||||
@@ -2036,10 +2036,10 @@ extern void mRmTp_MakeFamicom_Fdebug() {
|
||||
ftr_idx = 0x36A + mRmTp_famicom_idx;
|
||||
}
|
||||
|
||||
res = (*clip->my_room_clip->judge_breed_new_ftr_proc)(play, ftr_idx, &ut_x, &ut_z, &direct, &ofs, &layer);
|
||||
res = (*clip->my_room_clip->judge_breed_new_ftr_proc)(game, ftr_idx, &ut_x, &ut_z, &direct, &ofs, &layer);
|
||||
|
||||
if (res >= 0) {
|
||||
(*clip->my_room_clip->reserve_ftr_proc)(play, ftr_idx, res, ut_x, ut_z, direct, ofs, layer);
|
||||
(*clip->my_room_clip->reserve_ftr_proc)(game, ftr_idx, res, ut_x, ut_z, direct, ofs, layer);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user