summaryrefslogtreecommitdiff
path: root/src/JSystem
diff options
context:
space:
mode:
authorMax Roncace <me@caseif.net>2026-01-29 17:18:08 -0500
committerGitHub <noreply@github.com>2026-01-29 14:18:08 -0800
commit050ebb447137e7077903e208b41deccbf0ee23f6 (patch)
treec54e4676aca9283aa11628e714ce9cc18d6b304c /src/JSystem
parentc161523338fedf22e206a1c85d2777b4e6f667d0 (diff)
Add missing TUs for Wii/Shield retail (+ filename cleanup) (#3072)
* Fix GCN_mem_alloc.c filename capitalization * Fix up TRK file names in Wii/Shield splits * Add string_TRK * Add cc_gdev * Add Shield-only wstring TUs * Implement NdevExi2A * Add missing JSystem TUs (more are still missing from ShieldD) * Clean up includes
Diffstat (limited to 'src/JSystem')
-rw-r--r--src/JSystem/J3DGraphAnimator/J3DJoint.cpp8
-rw-r--r--src/JSystem/J3DU/J3DUFur.cpp29
-rw-r--r--src/JSystem/J3DU/J3DUMotion.cpp18
-rw-r--r--src/JSystem/J3DU/J3DUShadow.cpp22
-rw-r--r--src/JSystem/JAudio2/JAUAudience.cpp5
-rw-r--r--src/JSystem/JAudio2/JAUSoundObject.cpp11
6 files changed, 85 insertions, 8 deletions
diff --git a/src/JSystem/J3DGraphAnimator/J3DJoint.cpp b/src/JSystem/J3DGraphAnimator/J3DJoint.cpp
index 00fd7d1935..4091a3b7a1 100644
--- a/src/JSystem/J3DGraphAnimator/J3DJoint.cpp
+++ b/src/JSystem/J3DGraphAnimator/J3DJoint.cpp
@@ -26,14 +26,6 @@ J3DMtxBuffer* J3DMtxCalc::mMtxBuffer;
J3DJoint* J3DMtxCalc::mJoint;
-inline s32 checkScaleOne(const Vec& param_0) {
- if (param_0.x == 1.0f && param_0.y == 1.0f && param_0.z == 1.0f) {
- return true;
- } else {
- return false;
- }
-}
-
void J3DMtxCalcCalcTransformBasic::calcTransform(J3DTransformInfo const& transInfo) {
J3DJoint* joint = J3DMtxCalc::getJoint();
J3DMtxBuffer* mtxBuf = J3DMtxCalc::getMtxBuffer();
diff --git a/src/JSystem/J3DU/J3DUFur.cpp b/src/JSystem/J3DU/J3DUFur.cpp
new file mode 100644
index 0000000000..8920ff0517
--- /dev/null
+++ b/src/JSystem/J3DU/J3DUFur.cpp
@@ -0,0 +1,29 @@
+#include "JSystem/JSystem.h" // IWYU pragma: keep
+
+#include "JSystem/J3DU/J3DUFur.h"
+
+#include "JSystem/J3DGraphAnimator/J3DModel.h"
+#include "JSystem/J3DGraphBase/J3DMaterial.h"
+#include "JSystem/J3DGraphBase/J3DVertex.h"
+
+static void dummy() {
+ J3DShape* shape;
+ J3DMaterial* material = shape->getMaterial();
+ J3DJoint* joint = material->getJoint();
+
+ J3DVertexBuffer* vtxBuf;
+ vtxBuf->swapTransformedVtxPos();
+ J3DVertexData* vtxData = vtxBuf->getVertexData();
+ vtxBuf->getTransformedVtxPos(0);
+ vtxBuf->getCurrentVtxNrm();
+ vtxBuf->setCurrentVtxPos(NULL);
+
+ J3DModel* model;
+ model->getVertexBuffer();
+
+ J3DModelData* modelData;
+ vtxData->getNrmNum();
+ modelData->getNrmNum();
+ vtxData->getVtxNum();
+ modelData->getVtxNum();
+}
diff --git a/src/JSystem/J3DU/J3DUMotion.cpp b/src/JSystem/J3DU/J3DUMotion.cpp
new file mode 100644
index 0000000000..b8e7096c91
--- /dev/null
+++ b/src/JSystem/J3DU/J3DUMotion.cpp
@@ -0,0 +1,18 @@
+#include "JSystem/JSystem.h" // IWYU pragma: keep
+
+#include "JSystem/J3DU/J3DUMotion.h"
+
+#include "JSystem/J3DGraphAnimator/J3DJoint.h"
+#include "JSystem/J3DGraphLoader/J3DModelLoader.h"
+#include "JSystem/JMath/JMath.h"
+
+static void dummy() {
+ J3DMtxCalcJ3DSysInitSoftimage* img;
+ Vec* vec;
+ Mtx mtx;
+ img->init(*vec, mtx);
+ checkScaleOne(*vec);
+ J3DMtxCalc::getMtxBuffer();
+ JMAFastReciprocal(0.0f);
+ JMath::fastReciprocal(0.0f);
+}
diff --git a/src/JSystem/J3DU/J3DUShadow.cpp b/src/JSystem/J3DU/J3DUShadow.cpp
new file mode 100644
index 0000000000..5a44bea051
--- /dev/null
+++ b/src/JSystem/J3DU/J3DUShadow.cpp
@@ -0,0 +1,22 @@
+#include "JSystem/JSystem.h" // IWYU pragma: keep
+
+#include "JSystem/J3DU/J3DUShadow.h"
+
+#include "JSystem/JGeometry.h"
+#include "JSystem/JMath/JMath.h"
+#include "JSystem/JUtility/JUTTexture.h"
+
+void dummy() {
+ JMAAbs(0.0f);
+ JMathInlineVEC::C_VECDotProduct(NULL, NULL);
+ JGeometry::TVec3<f32>* vec;
+ vec->dot(*vec);
+ vec->length();
+
+ JUTTexture* tex;
+ tex->getCaptureFlag();
+ tex->getFormat();
+ JMath::fastSqrt<f32>(0.0f);
+ JUTTexture tex2;
+ tex2.setCaptureFlag(false);
+}
diff --git a/src/JSystem/JAudio2/JAUAudience.cpp b/src/JSystem/JAudio2/JAUAudience.cpp
new file mode 100644
index 0000000000..f21b3f32c6
--- /dev/null
+++ b/src/JSystem/JAudio2/JAUAudience.cpp
@@ -0,0 +1,5 @@
+#include "JSystem/JSystem.h" // IWYU pragma: keep
+
+#include "JSystem/JAudio2/JAUAudience.h"
+
+// NONMATCHING
diff --git a/src/JSystem/JAudio2/JAUSoundObject.cpp b/src/JSystem/JAudio2/JAUSoundObject.cpp
new file mode 100644
index 0000000000..0a630c8ca2
--- /dev/null
+++ b/src/JSystem/JAudio2/JAUSoundObject.cpp
@@ -0,0 +1,11 @@
+#include "JSystem/JSystem.h" // IWYU pragma: keep
+
+#include "JSystem/JAudio2/JAUSoundObject.h"
+
+#include "JSystem/JGeometry.h"
+
+static void dummy() {
+ JGeometry::TVec3<f32>* vec_1;
+ JGeometry::TVec3<f32>* vec_2;
+ *vec_1 = *vec_2;
+}