Skip to content

Commit

Permalink
Minor text fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOnlyZac authored Dec 5, 2024
1 parent 49825dd commit 09019f9
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
7 changes: 7 additions & 0 deletions include/splice/frame.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,11 @@ class CFrame
// todo Implement class.
};

// ...

/**
* @brief Deletes the frame.
*/
void DeleteFrame(CFrame *pframe);

#endif // SPLICE_FRAME_H
4 changes: 2 additions & 2 deletions include/splice/pair.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class CPair
void CloneTo(CPair* ppairClone, CFrame* pframeClone);
};

static CPair* PpairNew();
static void DeletePair(CPair* ppair);
CPair* PpairNew();
void DeletePair(CPair* ppair);

#endif // SPLICE_PAIR_H
3 changes: 2 additions & 1 deletion include/splice/splotheap.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ class CSplotheap
SPLOT *m_psplotFree;
SPLOT *m_psplotAlloc;
SPLOT *m_psplotRecyclable;
PFNDELETE m_pfndelete;

public:
PFNDELETE m_pfndelete;

void Startup(int cb, int c);
void Shutdown();
int PvAllocUnsafe();
Expand Down
9 changes: 7 additions & 2 deletions src/P2/splice/spliceutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,24 @@

extern CGc g_gc;

// todo: fix blocked references
// todo: match and fix blocked references
INCLUDE_ASM(const s32, "P2/splice/spliceutils", StartupSplice__Fv);
// void StartupSplice()
// {
// g_gc.Startup();

// g_splotheapPair.Startup(0xc, 0x2000);
// g_splotheapPair.m_pfndelete = reinterpret_cast<PFNDELETE>(DeletePair);

// g_splotheapFrame.Startup(0x1c, 0x190);
// g_splotheapFrame.m_pfndelete = reinterpret_cast<PFNDELETE>(DeleteFrame);

// g_splotheapUnk1.Startup(0x10, 0x800);
// g_splotheapUnk1.m_pfndelete = func_0011C4E8;
// g_splotheapUnk1.m_pfndelete = reinterpret_cast<PFNDELETE>(0x11C4E8);

// g_splotheapProc.Startup(0x14, 0x800);
// StartupSpliceStructuredTypeFactories();

// g_splotheapMethod.Startup(0xc,0x80);
// }

Expand Down

0 comments on commit 09019f9

Please sign in to comment.