From 1b8ea3206dbbaa6e4ebe7b4dfadffd8d85f37480 Mon Sep 17 00:00:00 2001 From: LagoLunatic Date: Sat, 13 Dec 2025 00:04:03 -0500 Subject: J3D debug work (#2949) * J3D debug work * Clean up JSystem GXColor ctors, remove a couple fakematches * Update symbols.txt * Fix res include syntax * Remove fakematch that isn't necessary anymore * Fix some Shield regressions --- include/JSystem/JSupport/JSupport.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/JSystem/JSupport') diff --git a/include/JSystem/JSupport/JSupport.h b/include/JSystem/JSupport/JSupport.h index 0b9a37aec5..4f103bdf1a 100644 --- a/include/JSystem/JSupport/JSupport.h +++ b/include/JSystem/JSupport/JSupport.h @@ -23,11 +23,13 @@ T* JSUConvertOffsetToPtr(const void* ptr, uintptr_t offset) { */ template T* JSUConvertOffsetToPtr(const void* ptr, const void* offset) { + T* ret; if (offset == NULL) { - return NULL; + ret = NULL; } else { - return (T*)((intptr_t)ptr + (intptr_t)offset); + ret = (T*)((intptr_t)ptr + (intptr_t)offset); } + return ret; } inline u8 JSULoNibble(u8 param_0) { return param_0 & 0x0f; } -- cgit v1.2.3