mirror of
https://github.com/TheOnlyZac/sly1.git
synced 2024-11-23 05:39:54 +00:00
Merge pull request #121 from SlyCooperReloadCoded/working
Matched IchkAllocChkmgr
This commit is contained in:
commit
751acad9d1
@ -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;
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user