The decomp is compiling!

This commit is contained in:
ineed bots
2023-08-31 18:56:00 -06:00
parent 00dcc0e424
commit 469e8f9630
41 changed files with 13313 additions and 209 deletions

View File

@ -46,24 +46,63 @@ namespace game
}
}
// HunkUser* __usercall Hunk_UserCreate@<eax>(signed int maxSize@<edi>, char* name, char fixed, char tempMem, char debugMem, int type);
HunkUser* Hunk_UserCreate(signed int maxSize, const char* name, int fixed, int tempMem, int debugMem, int typ, void* call_addr)
int CScr_SetEntityField/*@<eax>*/(int ofs/*@<edx>*/, int entnum/*@<ecx>*/, unsigned int clientnum, void* call_addr)
{
HunkUser* answer;
int answer;
__asm
{
push typ;
push debugMem;
push tempMem;
push fixed;
push name;
mov edi, maxSize;
push clientnum;
mov edx, ofs;
mov ecx, entnum;
call call_addr;
add esp, 0x14;
mov answer, eax;
add esp, 0x4;
}
return answer;
}
int Scr_SetObjectField/*@<eax>*/(int ofs/*@<eax>*/, int entnum/*@<edx>*/, classNum_e classnum, scriptInstance_t inst, void* call_addr)
{
int answer;
__asm
{
push inst;
push classnum;
mov eax, ofs;
mov edx, entnum;
call call_addr;
mov answer, eax;
add esp, 0x8;
}
return answer;
}
void CScr_GetEntityField(int ofs/*@<edx>*/, int entnum/*@<ecx>*/, unsigned int clientnum, void* call_addr)
{
__asm
{
push clientnum;
mov edx, ofs;
mov ecx, entnum;
call call_addr;
add esp, 0x4;
}
}
void Scr_GetObjectField(int ofs/*@<eax>*/, int inst/*@<edx>*/, classNum_e classnum, int entnum, void* call_addr)
{
__asm
{
push entnum;
push classnum;
mov eax, ofs;
mov edx, inst;
call call_addr;
add esp, 0x8;
}
}
}