Commit graph

1646 commits

Author SHA1 Message Date
MatthewBeshay 2f92b07c1f fix: resolve ByteBuffer hardcoded path and static const linker errors
Some checks are pending
Build (Linux, x86-64) / build-linux (push) Waiting to run
Format Check / clang-format (push) Waiting to run
2026-03-31 21:50:15 +11:00
MatthewBeshay a18cb3d484 refactor: replace shared_ptr(new T) with make_shared<T> 2026-03-31 20:42:45 +11:00
MatthewBeshay 8b836cf604 refactor: remove remaining trial/upsell from platform interfaces 2026-03-31 20:12:15 +11:00
MatthewBeshay f7241f8064 chore: add TODO for std::function migration in platform interfaces 2026-03-31 20:05:59 +11:00
MatthewBeshay 940b214539 refactor: apply C++ best practices to platform interfaces
Extract shared types to PlatformTypes.h, add [[nodiscard]] to query
methods, convert file-scope enums to enum class with compat aliases.
2026-03-31 20:05:59 +11:00
MatthewBeshay 5b02454b4f refactor: add IPlatformSound, IPlatformNetwork, IPlatformUIController interfaces 2026-03-31 20:05:59 +11:00
MatthewBeshay 42839182cd refactor: break World dependency on 4J modules via platform interfaces 2026-03-31 20:05:59 +11:00
MatthewBeshay 5c3668ec3c refactor: remove IsFullVersion and all trial mode code 2026-03-31 20:05:59 +11:00
MatthewBeshay 9e207250cb refactor: add platform interfaces, move GetPrimaryPad to Input, gut Profile stubs 2026-03-31 20:05:59 +11:00
Tropical adb3adfb8a further libjava cleanup
Some checks are pending
Build (Linux, x86-64) / build-linux (push) Waiting to run
Format Check / clang-format (push) Waiting to run
2026-03-31 02:05:01 -05:00
Tropical ea539a7e58 clean up libjava includes 2026-03-31 02:00:20 -05:00
Tropical bed181cd59 run IWYU on Minecraft.World 2026-03-31 01:39:49 -05:00
Tropical 949062aa81 cut down on the spa defines 2026-03-30 22:15:13 -05:00
Tropical 407d11b695 nuke unused xbox stubs, add rich presence identifiers to 4J_Profile 2026-03-30 22:11:56 -05:00
Tropical d3c24ddf56 missed some MemSects 2026-03-30 22:06:03 -05:00
Tropical 0b52cf8727 remove more auto-generated files 2026-03-30 22:03:56 -05:00
Tropical 818f0d9621 remove unused auto-generated durango render test file 2026-03-30 22:01:22 -05:00
Tropical f9e89c2be6 nuke memory tracking 2026-03-30 21:58:19 -05:00
Tropical e00c95e7ab nuke SocialManager 2026-03-30 21:50:28 -05:00
MatthewBeshay e942d0d472 refactor: revert GameMath rename back to Mth 2026-03-31 13:38:53 +11:00
Tropical 72ae771560 remove unused memory pool allocator 2026-03-30 21:38:41 -05:00
Tropical c6139b5667 remove unused Console_Utils.cpp 2026-03-30 21:37:35 -05:00
Tropical 4375f8acdf remove SonyLeaderboardManager 2026-03-30 21:32:40 -05:00
Tropical 6aed95749f Merge branch 'rubicon' of https://github.com/4jcraft/4jcraft into rubicon 2026-03-30 21:28:37 -05:00
Tropical a9dd396836 remove unused glWrapper 2026-03-30 21:28:26 -05:00
MatthewBeshay 2a7e5dc1d4 refactor: migrate NBT storage to unique_ptr, remove -fpermissive
CompoundTag/ListTag now use unique_ptr internally, fixing multiple memory leaks in getCompound/getList/getAllTags and tag overwrite paths.
2026-03-31 13:27:00 +11:00
Tropical 07861307a2 Merge branch 'rubicon' of https://github.com/4jcraft/4jcraft into rubicon 2026-03-30 21:17:57 -05:00
Tropical ffb4f6801f nuke miles headers 2026-03-30 21:17:44 -05:00
MatthewBeshay 8f0c2a3f26 refactor: replace Mth with GameMath, switch to stdlib math and std::numbers::pi
Inlined trivial wrappers, moved ranged random methods to Random, replaced M_PI with std::numbers::pi, unified DEGRAD/RAD_TO_GRAD as DEG_TO_RAD, fixed getInt/getDouble default fallback bug, and switched non-worldgen sin/cos to sinf/cosf.
2026-03-31 13:12:34 +11:00
Tropical 56dfb0badf nuke the rest of Sentient 2026-03-30 21:12:28 -05:00
Tropical e8052fc495 nuke TelemetryManager 2026-03-30 21:03:21 -05:00
Tropical ed9701fc4d nuke telemetry recording calls 2026-03-30 20:40:50 -05:00
Tropical 8580100ce4 Merge branch 'rubicon' of https://github.com/4jcraft/4jcraft into rubicon 2026-03-30 20:14:03 -05:00
Tropical 917a79caed fix java package build 2026-03-30 20:14:00 -05:00
MatthewBeshay 7ddfaeb59e refactor: remove arrayWithLength, replace with std::vector
Eliminates the custom arrayWithLength<T> wrapper and all typedefs, replacing with std::vector<T> directly.
2026-03-31 12:06:19 +11:00
Tropical 27a4964941 specify correct include path for java target
Some checks are pending
Build (Linux, x86-64) / build-linux (push) Waiting to run
Format Check / clang-format (push) Waiting to run
2026-03-30 17:19:50 -05:00
Tropical 69965844ce fix double include 2026-03-30 15:52:05 -05:00
Tropical 0817878fe1 refactor: consistent include paths in java/nbt 2026-03-30 15:47:05 -05:00
Tropical 44f6982e96 nuke empty stdafx source files 2026-03-30 12:56:14 -05:00
Tropical da1d6d8e97 refactor: split java libs and nbt into separate projects 2026-03-30 12:54:00 -05:00
Tropical 5c17c5c9ff move everything to minecraft subdir, switch to absolute include path 2026-03-30 11:01:08 -05:00
Tropical d570e28c16 make the game build 2026-03-30 10:43:58 -05:00
Tropical 451682693e restructure codebase according to vcproj filters 2026-03-30 09:50:58 -05:00
Tropical d5cf90c713
Merge pull request #369 from MatthewBeshay/refactor/nuke-critical-sections
Refactor/nuke critical sections
2026-03-30 09:37:57 -05:00
Tropical 1767c3f6e9 chore: fmt 2026-03-30 09:37:24 -05:00
MatthewBeshay e911e07a58 Refactor C4JThread: modernise API naming and replace Windows constants
Rename all PascalCase methods to camelCase, replace Windows macro constants with C++ constexpr members, convert ThreadPriority to enum class, remove unused Sleep(), fix memory ordering on inline accessors, extract platform code into helpers.
2026-03-31 01:06:06 +11:00
MatthewBeshay 156a23d744 Remove dead _ENTITIES_RW_SECTION code and update stale critical section comments
The RW section code path was never compiled. Updated remaining comments to reflect mutex/lock terminology.
2026-03-31 00:23:35 +11:00
MatthewBeshay a513fa7597 Rename CriticalSection wrapper functions to match std::mutex usage
EnterCallbackIdCriticalSection/LeaveCallbackIdCriticalSection -> lockCallbackScenes/unlockCallbackScenes, EnterSaveNotificationSection/LeaveSaveNotificationSection -> lockSaveNotification/unlockSaveNotification, m_saveNotificationCriticalSection -> m_saveNotificationMutex.
2026-03-31 00:16:16 +11:00
MatthewBeshay e4520df31f Restore recursive locking for mutexes converted from CRITICAL_SECTION
CRITICAL_SECTION is reentrant; std::mutex is not. This caused deadlocks during world generation, post-processing, and saving.
2026-03-30 22:14:14 +11:00
MatthewBeshay 57e4bdd973 Fix dirtyChunksLock scope in updateDirtyChunks
Move unique_lock declaration before the FRAME_PROFILE_SCOPE block so it remains in scope for the unlock() calls in the #if/#else branches below.
2026-03-30 19:12:22 +11:00