diff options
| author | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2025-12-13 00:04:03 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-12 21:04:03 -0800 |
| commit | 1b8ea3206dbbaa6e4ebe7b4dfadffd8d85f37480 (patch) | |
| tree | 334a6f146edd70f260a6d3156e1aad8221b22e42 /include/JSystem/JSupport | |
| parent | 7e514502d2e97781aa0488c08e39e505f29f36f5 (diff) | |
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
Diffstat (limited to 'include/JSystem/JSupport')
| -rw-r--r-- | include/JSystem/JSupport/JSupport.h | 6 |
1 files changed, 4 insertions, 2 deletions
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 <typename T> 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; } |
