summaryrefslogtreecommitdiff
path: root/src/JSystem
diff options
context:
space:
mode:
authorLagoLunatic <LagoLunatic@users.noreply.github.com>2025-08-19 17:15:39 -0400
committerLagoLunatic <LagoLunatic@users.noreply.github.com>2025-08-20 18:51:42 -0400
commit217775af4ef41ac875d53efe4da8f2d19f46e2af (patch)
treeea7683dbc31668db546d768bf8a165a7950d436e /src/JSystem
parenta32174dff6bbac81945505d8d86e125ce3443405 (diff)
Use precompiled headers, fix weak data issues
Diffstat (limited to 'src/JSystem')
-rw-r--r--src/JSystem/J3DGraphBase/J3DMatBlock.cpp5
-rw-r--r--src/JSystem/J3DU/J3DUClipper.cpp5
2 files changed, 1 insertions, 9 deletions
diff --git a/src/JSystem/J3DGraphBase/J3DMatBlock.cpp b/src/JSystem/J3DGraphBase/J3DMatBlock.cpp
index 161a205c..adf20758 100644
--- a/src/JSystem/J3DGraphBase/J3DMatBlock.cpp
+++ b/src/JSystem/J3DGraphBase/J3DMatBlock.cpp
@@ -14,11 +14,6 @@
#include "dolphin/types.h"
#include "string.h"
-inline GXAttnFn J3DColorChan::getAttnFn() {
- u8 attnFnTbl[] = { GX_AF_NONE, GX_AF_SPEC, GX_AF_NONE, GX_AF_SPOT };
- return GXAttnFn(attnFnTbl[mChanCtrl >> 9 & 0x03]);
-}
-
extern bool isTexNoReg(void*);
extern u16 getTexNoReg(void*);
extern void loadTexNo(u32, const u16 &);
diff --git a/src/JSystem/J3DU/J3DUClipper.cpp b/src/JSystem/J3DU/J3DUClipper.cpp
index 4f761c66..ecb733bc 100644
--- a/src/JSystem/J3DU/J3DUClipper.cpp
+++ b/src/JSystem/J3DU/J3DUClipper.cpp
@@ -8,10 +8,7 @@
#include "JSystem/J3DGraphAnimator/J3DModelData.h"
#include "math.h"
-// Needed for the .rodata section to match.
-static const f32 dummy1[3] = {1.0f, 1.0f, 1.0f};
-static const f32 dummy2[3] = {1.0f, 1.0f, 1.0f};
-static const f32 dummy3[3] = {0.0f, 0.0f, 0.0f};
+#include "weak_bss_3569.h" // IWYU pragma: keep
static const f32 Deg2Rad = 0.017453292f;