Commit Graph

1816 Commits

Author SHA1 Message Date
PJB3005 991ff43a8b My IDE lied to me 😭 2026-03-01 14:53:00 +01:00
PJB3005 e703c6289a Fix crafty's ++ and -- operators for BE<T> 2026-03-01 14:48:45 +01:00
CraftyBoss 83eb869cee update some actors to use sizeof for mSize, endian swap J2DScreen related structs, add 64bit endian swapping
game appears to be hanging on fully initing some processes, so while there isnt an immediate crash, nothing seems to be happening
2026-03-01 14:46:16 +01:00
PJB3005 eaff191b47 process class inheritance vtable fix 2026-03-01 14:34:07 +01:00
PJB3005 f0974c21e6 Fix J3DModelLoader OFFSET_POINTER macro name conflict 2026-03-01 00:39:19 +01:00
Jasper St. Pierre 8023a38fea fopAc_ac_c inherit 2026-02-28 14:23:50 -08:00
PJB3005 46a0c1b054 Fix cBgD_Grp_t m_name field size
Missed this.
2026-02-28 23:21:11 +01:00
PJB3005 b39700f5ab Fix fopAcM_ct_placement with vtable layouts 2026-02-28 23:02:06 +01:00
PJB3005 349990e0f6 Fix collision data loading (64-bit & BE) 2026-02-28 22:52:18 +01:00
PJB3005 67c7b9242c Actually fix compile with offset_ptr for real this time I hope? 2026-02-28 22:28:37 +01:00
PJB3005 babd659e1f Actually add offset_ptr.h to the repo 2026-02-28 22:15:09 +01:00
PJB3005 a7148d8bc3 Rename StageOffsetPtr to just OffsetPtr 2026-02-28 22:12:39 +01:00
PJB3005 5926989394 Fix pointer truncation in fopScnM_CreateReq i_data 2026-02-28 21:00:16 +01:00
PJB3005 5645b96d28 fix StageOffsetPtrT -> overload 2026-02-28 20:58:21 +01:00
PJB3005 5a519da22b Fix JGadget::TLinkList offsets on 64-bit 2026-02-28 20:17:20 +01:00
PJB3005 a23721bc7d Process debug imgui 2026-02-28 19:39:52 +01:00
PJB3005 2ed6a26de4 Get imgui running 2026-02-28 14:43:47 +01:00
PJB3005 a717eb8008 Fix default constructor parent zeroing shenanigans in actor creation 2026-02-28 13:27:42 +01:00
PJB3005 0c16a748c3 Make stage loading work on LE & 64-bit 2026-02-28 13:17:05 +01:00
PJB3005 be84ab7b0a Disable the audio engine for now 2026-02-27 23:54:50 +01:00
PJB3005 bb0ef954c2 Merge branch 'main' into 26-02-27-pjb-dev-2 2026-02-27 23:28:08 +01:00
TakaRikka f59295c127 Merge pull request #26 from TakaRikka/26-02-27-be-gx
Make GXVtxDescList and GXVtxAttrFmtList not be behind BE
2026-02-26 16:10:41 -08:00
PJB3005 4213b055ea Make GXVtxDescList and GXVtxAttrFmtList not be behind BE
Fixes a stub call because we couldn't pass the BE form to the API
2026-02-27 01:04:44 +01:00
PJB3005 e9cd1d1f64 Endianness fixes in JAudio loading code
Not tested because I can't even get the code to init again due to the aforementioned race condition
2026-02-26 23:22:47 +01:00
PJB3005 d7a4fe6fa8 Fix JASDram allocation race condition
Not sure if useful as long-term plan involves abandoning the DSP entirely.
2026-02-26 23:19:15 +01:00
PJB3005 55d162fd3e Make stage loading work somewhat
BE & 64-bit support

Most nodes haven't been fixed yet but this at least avoids an immediate crash.
2026-02-26 18:44:40 +01:00
PJB3005 031aabd9d0 Fix POINTER_ADD macro (64-bit & C++ compile) 2026-02-26 18:44:29 +01:00
TakaRikka 10e77f77e6 Merge pull request #23 from TakaRikka/26-02-25-fix-j3dtexture-assert
Fix broken J3DTexture assert
2026-02-25 13:56:07 -08:00
PJB3005 58774dc2bf Fix broken J3DTexture assert 2026-02-25 22:55:02 +01:00
TakaRikka 4c021a97a5 Merge pull request #21 from TakaRikka/26-02-25-jsystem-debug
Make the rest of JSystem compiled in DEBUG
2026-02-25 12:54:28 -08:00
PJB3005 454d3e80c6 Make the rest of JSystem compiled in DEBUG 2026-02-25 21:31:13 +01:00
PJB3005 9f2b9f4e33 Mark OSPanic and OSFatal as [[noreturn]]
Enables them to avoid "method isn't returning a value" errors
2026-02-25 21:31:13 +01:00
PJB3005 484d8ffa9a Fix FLT_EPSILON redefinition warning 2026-02-25 21:29:59 +01:00
TakaRikka 7fc1363d8b Merge pull request #16 from TakaRikka/26-02-25-more-endian-fixes
Asset loading endian fixes (mostly)
2026-02-25 11:58:37 -08:00
PJB3005 24ea26187e Merge branch 'main' into 26-02-25-more-endian-fixes 2026-02-25 20:47:33 +01:00
PJB3005 e7e176bfd4 Windows build fixes
Name mangling/linkage shenanigans

Remove jsystem_stubs.cpp, it's not necessary.
2026-02-25 20:43:43 +01:00
PJB3005 284e6c50b6 Fix endianness & 64-bit in 3D asset loading code
Combination of plumbing BE(T) through everything, making BE<T> have template specializations, and inverting at load time where more practical.
2026-02-25 20:20:45 +01:00
Jeffrey Crowell 9c7f55d1ac builds on mac again
revert some useless ifdefs

rm TARGET_PC in the wrong place

remove stubbed version of functions
2026-02-25 11:09:19 -08:00
PJB3005 6fed5eb37c Make JKRHeap::sCurrentHeap thread local
Needed because we're using true OS threading, so we can't do the normal JSystem heap changing on thread change.

Requires encapsulating it (removing the public static field)
2026-02-24 23:35:16 +01:00
PJB3005 2ac86ddc4a Use real line numbers for asserts
Redefine the macros to use __LINE__
2026-02-24 23:15:01 +01:00
PJB3005 696cf75ed3 Fix getMaxAllocatableSize & CMemBlock::getBlock on 64-bit 2026-02-24 21:39:45 +01:00
PJB3005 6e0c9f2637 Add BIT_64 define to types.h
I'll be using this
2026-02-24 21:39:11 +01:00
PJB3005 78c91adcf6 Fix AR DMAs & async DVD reads on 64-bit
We get to the health and safety screen!!
2026-02-24 20:48:16 +01:00
Lurs 26b3ffb303 Fix JSUOutputStream uintptr_t operator conflict on MSVC x86.
uintptr_t == u32 == unsigned int on 32-bit MSVC since u32 was changed from unsigned long to unsigned int for TARGET_PC. Guard the uintptr_t overload to x64 only where uintptr_t != u32.
2026-02-24 20:42:46 +01:00
PJB3005 cf5eca0910 Fix JKRArchive on 64-bit
They store the data address in the same struct that's directly loaded from archive files. This means it's impossible to expand to 64-bit directly, and instead we need to allocate the data pointers in a separate array.
2026-02-24 19:55:15 +01:00
PJB3005 08ab1e1106 Fix wrong forward declares (struct/class)
Requires removing the now-matching symbols from jsystem_stubs.cpp
2026-02-24 16:58:12 +01:00
PJB3005 99e0ca4a46 Use BE(T) for JKRArchive 2026-02-24 16:55:08 +01:00
PJB3005 78be0f28fa Revert accidental changes to JKRArchive.h
(not mine)
2026-02-24 16:51:27 +01:00
PJB3005 2900265ceb Use BE(T) for JUTPalette 2026-02-24 16:35:45 +01:00
PJB3005 4c98a536af Use BE(T) for JUTFont 2026-02-24 16:29:13 +01:00