diff options
| author | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2026-05-18 00:59:19 -0400 |
|---|---|---|
| committer | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2026-05-18 00:59:19 -0400 |
| commit | f85b3ff3c074a4137992edeead966ac3cfa82de5 (patch) | |
| tree | e1143855e47aaf3944aa710eda4c936847501a2d | |
| parent | bc09a831c52b505ecdd5e617fb31ece9fa7d6c6c (diff) | |
Fix demo build failing
| -rw-r--r-- | config/D44J01/config.yml | 3 | ||||
| -rw-r--r-- | src/dolphin/mtx/mtxvec.c | 10 |
2 files changed, 10 insertions, 3 deletions
diff --git a/config/D44J01/config.yml b/config/D44J01/config.yml index 696e1122..43193963 100644 --- a/config/D44J01/config.yml +++ b/config/D44J01/config.yml @@ -8,9 +8,6 @@ splits: config/D44J01/splits.txt symbols: config/D44J01/symbols.txt # map: orig/D44J01/files/maps/framework.map -force_active: -- C_MTXMultVecArray # Debug only, added here so debug can be linked - mw_comment_version: 10 # GC Linker 1.3.2 symbols_known: true # Very fast analysis fill_gaps: false # Alignments known diff --git a/src/dolphin/mtx/mtxvec.c b/src/dolphin/mtx/mtxvec.c index d414db32..e4efaee4 100644 --- a/src/dolphin/mtx/mtxvec.c +++ b/src/dolphin/mtx/mtxvec.c @@ -44,6 +44,12 @@ asm void PSMTXMultVec(const register Mtx m, const register Vec* src, register Ve } #endif +#ifdef DEBUG +// Hack to fix a linker error when compiling in debug mode +#pragma push +#pragma force_active on +#endif + void C_MTXMultVecArray(const Mtx m, const Vec* srcBase, Vec* dstBase, u32 count) { u32 i; Vec vTmp; @@ -65,6 +71,10 @@ void C_MTXMultVecArray(const Mtx m, const Vec* srcBase, Vec* dstBase, u32 count) } } +#ifdef DEBUG +#pragma pop +#endif + #ifdef __MWERKS__ asm void PSMTXMultVecArray(const register Mtx m, const register Vec* srcBase, register Vec* dstBase, register u32 count) { nofralloc |
