Matched IchkAllocChkmgr

This commit is contained in:
SlyCooperReloadCoded 2024-11-19 23:00:40 -05:00
parent d419847198
commit 8bb5220b67
2 changed files with 6 additions and 1 deletions

View File

@ -28,6 +28,7 @@ struct CHKPNT : public ALO
*/
struct CHKMGR
{
int unknown_0x0;
int cbitChk; // Count of values in abitChk.
int *abitChk; // Unknown, name/type may be wrong.
int padding[128]; // Temporary padding

View File

@ -8,7 +8,11 @@ INCLUDE_ASM(const s32, "P2/chkpnt", ReturnChkmgrToCheckpoint__FP6CHKMGR);
INCLUDE_ASM(const s32, "P2/chkpnt", RestoreChkmgrFromCheckpoint__FP6CHKMGR);
INCLUDE_ASM(const s32, "P2/chkpnt", IchkAllocChkmgr__FP6CHKMGR);
int IchkAllocChkmgr(CHKMGR *pchkmgr)
{
pchkmgr->cbitChk = pchkmgr->cbitChk + 1;
return pchkmgr->cbitChk;
}
INCLUDE_ASM(const s32, "P2/chkpnt", FGetChkmgrIchk__FP6CHKMGRi);