Add hacks to fix PCH .data causing fake mismatches with decompctx (#2606)

This commit is contained in:
Max Roncace
2025-08-30 23:57:35 -04:00
committed by GitHub
parent abf5f59f0c
commit 8c94dc8608
8 changed files with 99 additions and 7 deletions
+6 -1
View File
@@ -5,8 +5,13 @@
#include "m_Do/m_Do_lib.h"
namespace Z2Calc {
// hack for f_op_actor, having this present breaks its weak func ordering
#ifdef DECOMPCTX
// Hack to mitigate fake mismatches when building from decompctx output -
// see comment in sqrtf in math.h
static Vec cNullVec = {0.0f, 0.0f, 0.0f};
#else
static const Vec cNullVec = {0.0f, 0.0f, 0.0f};
#endif
enum CurveSign {
CURVE_SIGN_0 = 0,