From 1ae227e9badcb90e08f376afc0bb4acceea6e265 Mon Sep 17 00:00:00 2001 From: Mohamed Ashraf Date: Thu, 5 Mar 2026 16:12:37 +0400 Subject: [PATCH 1/3] FIX COMPILE AND IT'S ALMOST DONE HOLY SHIT --- Minecraft.Client/Build/Common/Audio/SoundEngine.cpp | 6 +++--- Minecraft.Client/Platform/Linux/LinuxGL.cpp | 6 +++--- Minecraft.Client/Platform/Linux/linux_game_stubs.cpp | 6 +++--- Minecraft.Client/Rendering/glWrapper.cpp | 1 - 4 files changed, 9 insertions(+), 10 deletions(-) diff --git a/Minecraft.Client/Build/Common/Audio/SoundEngine.cpp b/Minecraft.Client/Build/Common/Audio/SoundEngine.cpp index f5707cdef..45ccd8a38 100644 --- a/Minecraft.Client/Build/Common/Audio/SoundEngine.cpp +++ b/Minecraft.Client/Build/Common/Audio/SoundEngine.cpp @@ -4,8 +4,8 @@ #include "../Consoles_App.h" #include "../../../Player/MultiPlayerLocalPlayer.h" #include "../../../../Minecraft.World/Headers/net.minecraft.world.level.h" -#include "../../Minecraft.World/leveldata.h" -#include "../../Minecraft.World/mth.h" +#include "../../../../Minecraft.World/Level/LevelData.h" +#include "../../Minecraft.World/Util/Mth.h" #include "../../../Textures/Packs/TexturePackRepository.h" #include "../../../Textures/Packs/DLCTexturePack.h" #include "../DLC/DLCAudioFile.h" @@ -1676,4 +1676,4 @@ F32 AILCALLBACK custom_falloff_function (HSAMPLE S, return result; } -#endif \ No newline at end of file +#endif diff --git a/Minecraft.Client/Platform/Linux/LinuxGL.cpp b/Minecraft.Client/Platform/Linux/LinuxGL.cpp index d24f71947..431ef7cdd 100644 --- a/Minecraft.Client/Platform/Linux/LinuxGL.cpp +++ b/Minecraft.Client/Platform/Linux/LinuxGL.cpp @@ -4,9 +4,9 @@ #include #include #include -#include "../../Minecraft.World/IntBuffer.h" -#include "../../Minecraft.World/FloatBuffer.h" -#include "../../Minecraft.World/ByteBuffer.h" +#include "../../Minecraft.World/IO/Streams/IntBuffer.h" +#include "../../Minecraft.World/IO/Streams/FloatBuffer.h" +#include "../../Minecraft.World/IO/Streams/ByteBuffer.h" int glGenTextures() { diff --git a/Minecraft.Client/Platform/Linux/linux_game_stubs.cpp b/Minecraft.Client/Platform/Linux/linux_game_stubs.cpp index 3844e1deb..6f116f0b4 100644 --- a/Minecraft.Client/Platform/Linux/linux_game_stubs.cpp +++ b/Minecraft.Client/Platform/Linux/linux_game_stubs.cpp @@ -5,14 +5,14 @@ #include #include -#include "../stubs.h" -#include "../Common/Consoles_App.h" +#include "Stubs/LinuxStubs.h" +#include "../../Build/Common/Consoles_App.h" void Display::update() {} int CMinecraftApp::GetTPConfigVal(WCHAR* pwchDataFile) { return 0; } -#include "../../Minecraft.World/x64headers/extraX64.h" +#include "../../Minecraft.World/Build/x64headers/extraX64.h" void PIXSetMarkerDeprecated(int a, const char* b, ...) {} diff --git a/Minecraft.Client/Rendering/glWrapper.cpp b/Minecraft.Client/Rendering/glWrapper.cpp index 6134b7d45..d64e0cebb 100644 --- a/Minecraft.Client/Rendering/glWrapper.cpp +++ b/Minecraft.Client/Rendering/glWrapper.cpp @@ -392,4 +392,3 @@ void glCullFace(int dir) } #endif -#endif \ No newline at end of file From 45e5286e55b1544decfb8fab580cc800e334974c Mon Sep 17 00:00:00 2001 From: ThePixelMoon Date: Thu, 5 Mar 2026 15:11:48 +0200 Subject: [PATCH 2/3] Minecraft.Client: All i did is just set a false to true --- Minecraft.Client/Platform/Linux/Stubs/iggy_stubs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Minecraft.Client/Platform/Linux/Stubs/iggy_stubs.h b/Minecraft.Client/Platform/Linux/Stubs/iggy_stubs.h index 8f9232f82..5a74deea3 100644 --- a/Minecraft.Client/Platform/Linux/Stubs/iggy_stubs.h +++ b/Minecraft.Client/Platform/Linux/Stubs/iggy_stubs.h @@ -114,7 +114,7 @@ RADEXPFUNC inline IggyResult RADEXPLINK IggyValueGetF64RS(IggyValuePath *var, Ig } RADEXPFUNC inline rrbool RADEXPLINK IggyValueSetBooleanRS(IggyValuePath *var, IggyName sub_name, char const *sub_name_utf8, rrbool value) { STUBBED; - return false; + return true; } RADEXPFUNC inline void RADEXPLINK IggyInit(IggyAllocator *allocator) { STUBBED; From 4a0e6ea98f1899ca868c9629da55848bcf8ab26c Mon Sep 17 00:00:00 2001 From: six <64337177+authorisation@users.noreply.github.com> Date: Thu, 5 Mar 2026 15:30:38 +0100 Subject: [PATCH 3/3] fix(CMakeLists): add early check for libGLU --- Minecraft.Client/Build/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Minecraft.Client/Build/CMakeLists.txt b/Minecraft.Client/Build/CMakeLists.txt index f1824aeac..9a323b140 100644 --- a/Minecraft.Client/Build/CMakeLists.txt +++ b/Minecraft.Client/Build/CMakeLists.txt @@ -5223,6 +5223,7 @@ if(UNIX AND NOT APPLE) find_package(OpenGL REQUIRED) find_package(PkgConfig REQUIRED) pkg_check_modules(GLFW3 REQUIRED glfw3) + pkg_check_modules(GLU REQUIRED glu) target_include_directories(${PROJECT_NAME} PRIVATE ${GLFW3_INCLUDE_DIRS}