Skip to content

Commit

Permalink
Cleanup and unblock AddFcht
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOnlyZac authored Dec 5, 2024
1 parent e5db3e5 commit 49825dd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
17 changes: 8 additions & 9 deletions src/P2/joy.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,15 +233,14 @@ void ClearFchts()
ResetWorld(FTRANS_None);
}

INCLUDE_ASM(const s32, "P2/joy", AddFcht__Fi);
// void AddFcht(int nParam)
// {
// g_grfcht |= nParam & ~FCHT_ResetWorld;
// if (nParam & FCHT_ResetWorld)
// {
// ResetWorld(FTRANS_None);
// }
// }
void AddFcht(int nParam)
{
g_grfcht |= nParam & ~FCHT_ResetWorld;
if (nParam & FCHT_ResetWorld)
{
ResetWorld(FTRANS_None);
}
}

INCLUDE_ASM(const s32, "P2/joy", func_0016F470);

Expand Down
5 changes: 2 additions & 3 deletions src/P2/jt2.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ INCLUDE_ASM(const s32, "P2/jt2", EnableJtActadj__FP2JTi);

INCLUDE_ASM(const s32, "P2/jt2", SetJtJts__FP2JT3JTS4JTBS);

//INCLUDE_ASM(const s32, "P2/jt2", ProfileJt__FP2JTi);
void ProfileJt(JT* pjt, int fProfile) {
// Does nothing.
void ProfileJt(JT *pjt, int fProfile)
{
return;
}

Expand Down
1 change: 1 addition & 0 deletions src/P2/splice/spliceutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

extern CGc g_gc;

// todo: fix blocked references
INCLUDE_ASM(const s32, "P2/splice/spliceutils", StartupSplice__Fv);
// void StartupSplice()
// {
Expand Down

0 comments on commit 49825dd

Please sign in to comment.