Merge pull request #121 from SlyCooperReloadCoded/working
Some checks failed
CI / build (push) Has been cancelled
Frogress / update-progress (push) Has been cancelled

Matched IchkAllocChkmgr
This commit is contained in:
Zac 2024-11-19 23:10:13 -05:00 committed by GitHub
commit 751acad9d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 11 deletions

View File

@ -18,7 +18,7 @@
*/
struct CHKPNT : public ALO
{
// ...
// ...
};
/**
@ -28,15 +28,16 @@ struct CHKPNT : public ALO
*/
struct CHKMGR
{
int cbitChk; // Count of values in abitChk.
int *abitChk; // Unknown, name/type may be wrong.
int padding[128]; // Temporary padding
int fChkDirty;
VECTOR posVolChkpnt;
int csSaved[129]; // type may be wrong
OID unk_oid_0x424;
OID unk_oid_0x428;
int fCheckpoint;
int unknown_0x0;
int cbitChk; // Count of values in abitChk.
int *abitChk; // Unknown, name/type may be wrong.
int padding[128]; // Temporary padding
int fChkDirty;
VECTOR posVolChkpnt;
int csSaved[129]; // type may be wrong
OID unk_oid_0x424;
OID unk_oid_0x428;
int fCheckpoint;
};
extern CHKMGR g_chkmgr;

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);