some c_m3d (#97)

* decompiled some bgs_chk funcs

* c_m3d_g

* c_math progress

* remove duplicate SComponent headers

* move some variables and decompile a function

* some inlined from debug

* cM3d_2PlaneLinePosNearPos

* fix fabsf and decompile cM3d_CrawVec

* format

* cleanup

* more cleanup

Co-authored-by: Pheenoh <pheenoh@gmail.com>
This commit is contained in:
lepelog
2021-01-26 23:48:47 +01:00
committed by GitHub
parent b8d0da505d
commit 1e105b87f1
135 changed files with 1022 additions and 2738 deletions
+16 -14
View File
@@ -3,26 +3,28 @@
#include "SComponent/c_bg_s_chk.h"
// __ct__8cBgS_ChkFv
asm cBgS_Chk::cBgS_Chk(void) {
nofralloc
#include "SComponent/c_bg_s_chk/asm/func_80267B4C.s"
cBgS_Chk::cBgS_Chk(void) {
unk_0x00 = 0;
unk_0x04 = 0;
unk_0x0C = 1;
}
// __dt__8cBgS_ChkFv
asm cBgS_Chk::~cBgS_Chk(void) {
nofralloc
#include "SComponent/c_bg_s_chk/asm/func_80267B70.s"
}
cBgS_Chk::~cBgS_Chk(void) {}
// SetExtChk__8cBgS_ChkFR8cBgS_Chk
asm void cBgS_Chk::SetExtChk(cBgS_Chk&) {
nofralloc
#include "SComponent/c_bg_s_chk/asm/func_80267BB8.s"
void cBgS_Chk::SetExtChk(cBgS_Chk& pOther) {
unk_0x00 = pOther.unk_0x00;
unk_0x04 = pOther.unk_0x04;
unk_0x08 = pOther.unk_0x08;
unk_0x0C = pOther.unk_0x0C;
}
// ChkSameActorPid__8cBgS_ChkCFUi
// cBgS_Chk::ChkSameActorPid(unsigned int) const
asm bool cBgS_Chk::ChkSameActorPid(unsigned int) const {
nofralloc
#include "SComponent/c_bg_s_chk/asm/func_80267BDC.s"
bool cBgS_Chk::ChkSameActorPid(unsigned int pUint) const {
if (unk_0x08 == -1 || pUint == UINT32_MAX || unk_0x0C == 0) {
return 0;
} else {
return (unk_0x08 == pUint) ? 1 : 0;
}
}