Skip to content

Commit

Permalink
some PSMainSide_DirectorMgr.cpp fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
HeartPiece44 committed Sep 29, 2023
1 parent da50edf commit 54a9b9e
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 293 deletions.
5 changes: 2 additions & 3 deletions include/PSM/Director.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ struct PikminNumberDirector_AutoBgm : public PikminNumberDirector {

// _00 = VTBL
// _00-_4C = PikminNumberDirector
u8 _4C; // _4C
::PSSystem::DirectedBgm* mDirectedBgm; // _50
};

Expand Down Expand Up @@ -321,7 +320,7 @@ struct DirectorUpdator {
::PSSystem::DirectorBase* mDirector; // _0C
};

struct ListDirectorActor : public ::PSSystem::DirectorCopyActor {
struct ListDirectorActor : public ::PSSystem::DirectorCopyActor, public JSUPtrList {
ListDirectorActor()
: ::PSSystem::DirectorCopyActor(nullptr, nullptr)
{
Expand All @@ -330,7 +329,7 @@ struct ListDirectorActor : public ::PSSystem::DirectorCopyActor {

// _00 = VTBL
// _00-_0C = PSSystem::DirectorCopyActor
JSUPtrList mPtrList; // _0C
// _0C-_18 = JSUPtrList
};
} // namespace PSM

Expand Down
4 changes: 4 additions & 0 deletions include/PSM/DirectorMgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ struct DirectorMgr_Scene : public ::PSSystem::DirectorMgrBase, public JKRDispose
void initTrackMap(::PSSystem::DirectedBgm&);
void adaptDirectorActor(::PSSystem::DirectorBase*, u8);

inline ::PSSystem::DirectorCopyActor* getCopyActorList(int i) { return mCopyActorList[i]; }

inline void setCopyActorList(int i, ::PSSystem::DirectorCopyActor* list) { mCopyActorList[i] = list; }

// _00 = VTBL 1 (DirectorMgrBase)
// _0C = VTBL 2 (JKRDisposer + Self)
// _00-_0C = PSSystem::DirectorMgrBase
Expand Down
Loading

0 comments on commit 54a9b9e

Please sign in to comment.