summaryrefslogtreecommitdiff
path: root/libs/SSystem/SComponent/c_lib.cpp
diff options
context:
space:
mode:
authorlepelog <lepelog@users.noreply.github.com>2021-01-07 02:04:53 +0100
committerGitHub <noreply@github.com>2021-01-06 20:04:53 -0500
commit0cf65151b3a1a85a5d3ad74a367045e596aee1aa (patch)
tree9ac4f66b24945629766d587a9514ad513b11241c /libs/SSystem/SComponent/c_lib.cpp
parent792509e0a15687b76bee216440ccd3d90554f37e (diff)
Split SComponent (#45)
* split c_math * split c_angle * split c_API_controller_pad * split c_API_graphic * split c_bg_s_chk * c_bg_s_gnd_chk split * more c_bg split * split c_cc_d * delete asm * split c_cc_s * split c_lib * split c_m2d and c_m3d_g_aab * split c_m3d_g_cir * split c_m3d_g_cps * split rest of c_m3d_g * split c_m3d * split c_malloc * split c_request * split c_sxyz * split and partly decompile c_xyz * format * c_angle.h * begin c_angle decomp * c_angle * progress adding stub classes for SComponent * more c_m3d * remove some asm and format * more m3d headers * more c_angle decomp * c_lib headers * add public to classes * fix csXyz member names * c_sxyz partly OK * move Zero csXyz to c_sxyz header * c_API_graphic * delete some unused asm * move math extern data, decompile some functions * delete unused asm * fix duplicated c_angle.h * fix an inlined function name, add more inlined functions for c_angle.h (currently unused) * format Co-authored-by: Pheenoh <pheenoh@gmail.com>
Diffstat (limited to 'libs/SSystem/SComponent/c_lib.cpp')
-rw-r--r--libs/SSystem/SComponent/c_lib.cpp200
1 files changed, 199 insertions, 1 deletions
diff --git a/libs/SSystem/SComponent/c_lib.cpp b/libs/SSystem/SComponent/c_lib.cpp
index 4bf93c8658..9ea135cfca 100644
--- a/libs/SSystem/SComponent/c_lib.cpp
+++ b/libs/SSystem/SComponent/c_lib.cpp
@@ -1 +1,199 @@
-// ok
+/* c_lib.cpp autogenerated by split.py v0.3 at 2021-01-01 14:12:11.766106 */
+
+#include "SComponent/c_lib.h"
+
+// cLib_memCpy__FPvPCvUl
+// cLib_memCpy(void*, const void*, unsigned long)
+asm void cLib_memCpy(void*, const void*, unsigned long) {
+ nofralloc
+#include "SComponent/c_lib/asm/func_8026F93C.s"
+}
+
+// cLib_memSet__FPviUl
+// cLib_memSet(void*, int, unsigned long)
+asm void cLib_memSet(void*, int, unsigned long) {
+ nofralloc
+#include "SComponent/c_lib/asm/func_8026F95C.s"
+}
+
+// cLib_addCalc__FPfffff
+// cLib_addCalc(float*, float, float, float, float)
+asm float cLib_addCalc(float*, float, float, float, float) {
+ nofralloc
+#include "SComponent/c_lib/asm/func_8026F97C.s"
+}
+
+// cLib_addCalc2__FPffff
+// cLib_addCalc2(float*, float, float, float)
+asm void cLib_addCalc2(float*, float, float, float) {
+ nofralloc
+#include "SComponent/c_lib/asm/func_8026FA3C.s"
+}
+
+// cLib_addCalc0__FPfff
+// cLib_addCalc0(float*, float, float)
+asm void cLib_addCalc0(float*, float, float) {
+ nofralloc
+#include "SComponent/c_lib/asm/func_8026FA80.s"
+}
+
+// cLib_addCalcPos__FP4cXyzRC4cXyzfff
+// cLib_addCalcPos(cXyz*, const cXyz&, float, float, float)
+asm float cLib_addCalcPos(cXyz*, const cXyz&, float, float, float) {
+ nofralloc
+#include "SComponent/c_lib/asm/func_8026FAB8.s"
+}
+
+// cLib_addCalcPosXZ__FP4cXyzRC4cXyzfff
+// cLib_addCalcPosXZ(cXyz*, const cXyz&, float, float, float)
+asm float cLib_addCalcPosXZ(cXyz*, const cXyz&, float, float, float) {
+ nofralloc
+#include "SComponent/c_lib/asm/func_8026FDF4.s"
+}
+
+// cLib_addCalcPos2__FP4cXyzRC4cXyzff
+// cLib_addCalcPos2(cXyz*, const cXyz&, float, float)
+asm void cLib_addCalcPos2(cXyz*, const cXyz&, float, float) {
+ nofralloc
+#include "SComponent/c_lib/asm/func_80270178.s"
+}
+
+// cLib_addCalcPosXZ2__FP4cXyzRC4cXyzff
+// cLib_addCalcPosXZ2(cXyz*, const cXyz&, float, float)
+asm void cLib_addCalcPosXZ2(cXyz*, const cXyz&, float, float) {
+ nofralloc
+#include "SComponent/c_lib/asm/func_80270350.s"
+}
+
+// cLib_addCalcAngleS__FPsssss
+// cLib_addCalcAngleS(short*, short, short, short, short)
+asm short cLib_addCalcAngleS(short*, short, short, short, short) {
+ nofralloc
+#include "SComponent/c_lib/asm/func_80270540.s"
+}
+
+// cLib_addCalcAngleS2__FPssss
+// cLib_addCalcAngleS2(short*, short, short, short)
+asm void cLib_addCalcAngleS2(short*, short, short, short) {
+ nofralloc
+#include "SComponent/c_lib/asm/func_80270608.s"
+}
+
+// cLib_chaseUC__FPUcUcUc
+// cLib_chaseUC(unsigned char*, unsigned char, unsigned char)
+asm int cLib_chaseUC(unsigned char*, unsigned char, unsigned char) {
+ nofralloc
+#include "SComponent/c_lib/asm/func_8027065C.s"
+}
+
+// cLib_chaseS__FPsss
+// cLib_chaseS(short*, short, short)
+asm int cLib_chaseS(short*, short, short) {
+ nofralloc
+#include "SComponent/c_lib/asm/func_802706D0.s"
+}
+
+// cLib_chaseF__FPfff
+// cLib_chaseF(float*, float, float)
+asm int cLib_chaseF(float*, float, float) {
+ nofralloc
+#include "SComponent/c_lib/asm/func_80270740.s"
+}
+
+// cLib_chasePos__FP4cXyzRC4cXyzf
+// cLib_chasePos(cXyz*, const cXyz&, float)
+asm int cLib_chasePos(cXyz*, const cXyz&, float) {
+ nofralloc
+#include "SComponent/c_lib/asm/func_802707AC.s"
+}
+
+// cLib_chasePosXZ__FP4cXyzRC4cXyzf
+// cLib_chasePosXZ(cXyz*, const cXyz&, float)
+asm int cLib_chasePosXZ(cXyz*, const cXyz&, float) {
+ nofralloc
+#include "SComponent/c_lib/asm/func_80270990.s"
+}
+
+// cLib_chaseAngleS__FPsss
+// cLib_chaseAngleS(short*, short, short)
+asm int cLib_chaseAngleS(short*, short, short) {
+ nofralloc
+#include "SComponent/c_lib/asm/func_80270B90.s"
+}
+
+// cLib_targetAngleY__FPC3VecPC3Vec
+// cLib_targetAngleY(const Vec*, const Vec*)
+asm short cLib_targetAngleY(const Vec*, const Vec*) {
+ nofralloc
+#include "SComponent/c_lib/asm/func_80270C04.s"
+}
+
+// cLib_targetAngleY__FRC3VecRC3Vec
+// cLib_targetAngleY(const Vec&, const Vec&)
+asm short cLib_targetAngleY(const Vec&, const Vec&) {
+ nofralloc
+#include "SComponent/c_lib/asm/func_80270C3C.s"
+}
+
+// cLib_targetAngleX__FPC4cXyzPC4cXyz
+// cLib_targetAngleX(const cXyz*, const cXyz*)
+asm short cLib_targetAngleX(const cXyz*, const cXyz*) {
+ nofralloc
+#include "SComponent/c_lib/asm/func_80270C74.s"
+}
+
+// cLib_offsetPos__FP4cXyzPC4cXyzsPC4cXyz
+// cLib_offsetPos(cXyz*, const cXyz*, short, const cXyz*)
+asm void cLib_offsetPos(cXyz*, const cXyz*, short, const cXyz*) {
+ nofralloc
+#include "SComponent/c_lib/asm/func_80270DC0.s"
+}
+
+// cLib_distanceAngleS__Fss
+// cLib_distanceAngleS(short, short)
+asm short cLib_distanceAngleS(short, short) {
+ nofralloc
+#include "SComponent/c_lib/asm/func_80270E24.s"
+}
+
+// MtxInit__Fv
+// MtxInit(void)
+asm void MtxInit(void) {
+ nofralloc
+#include "SComponent/c_lib/asm/func_80270E4C.s"
+}
+
+// MtxTrans__FfffUc
+// MtxTrans(float, float, float, unsigned char)
+asm void MtxTrans(float, float, float, unsigned char) {
+ nofralloc
+#include "SComponent/c_lib/asm/func_80270E5C.s"
+}
+
+// MtxScale__FfffUc
+// MtxScale(float, float, float, unsigned char)
+asm void MtxScale(float, float, float, unsigned char) {
+ nofralloc
+#include "SComponent/c_lib/asm/func_80270EA4.s"
+}
+
+// MtxPosition__FP4cXyzP4cXyz
+// MtxPosition(cXyz*, cXyz*)
+asm void MtxPosition(cXyz*, cXyz*) {
+ nofralloc
+#include "SComponent/c_lib/asm/func_80270EEC.s"
+}
+
+// MtxPush__Fv
+// MtxPush(void)
+asm void MtxPush(void) {
+ nofralloc
+#include "SComponent/c_lib/asm/func_80270F1C.s"
+}
+
+// MtxPull__Fv
+// MtxPull(void)
+asm Mtx* MtxPull(void) {
+ nofralloc
+#include "SComponent/c_lib/asm/func_80270F58.s"
+}