From 70c8a010e8faed1717eaa34e74baef15b20ed6b5 Mon Sep 17 00:00:00 2001 From: Tropical <42101043+tropicaaal@users.noreply.github.com> Date: Mon, 2 Mar 2026 17:57:20 -0600 Subject: [PATCH] refactor: move stubs out of `App_Defines.h` into wlinux/extraX64 --- Minecraft.Client/Common/App_Defines.h | 7 ------- Minecraft.World/linux/wlinux.h | 4 ++++ Minecraft.World/x64headers/extraX64.h | 5 ++++- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Minecraft.Client/Common/App_Defines.h b/Minecraft.Client/Common/App_Defines.h index 88b37b88e..41c239f8d 100644 --- a/Minecraft.Client/Common/App_Defines.h +++ b/Minecraft.Client/Common/App_Defines.h @@ -104,13 +104,6 @@ #define MINECRAFT_LANGUAGE_LATINAMERICANSPANISH 0x13 #define MINECRAFT_LANGUAGE_GREEK 0x14 -#if defined(__linux__) -#define __debugbreak() -#define __int32 int -typedef unsigned long ULONG; -inline void InitializeCriticalSectionAndSpinCount(CRITICAL_SECTION CriticalSection, ULONG SpinCount) {} -#endif // __linux__ - /* Match these const int XC_LANGUAGE_ENGLISH =1; diff --git a/Minecraft.World/linux/wlinux.h b/Minecraft.World/linux/wlinux.h index 28e42a0f9..0148a1ce4 100644 --- a/Minecraft.World/linux/wlinux.h +++ b/Minecraft.World/linux/wlinux.h @@ -45,6 +45,10 @@ typedef long long LONGLONG; typedef size_t SIZE_T; typedef std::wstring LPWSTR; typedef unsigned char boolean; // java brainrot +#define __debugbreak() +#define __int32 int +typedef unsigned long ULONG; +typedef unsigned char byte; // https://learn.microsoft.com/en-us/windows/win32/api/minwinbase/ns-minwinbase-filetime typedef struct _FILETIME { diff --git a/Minecraft.World/x64headers/extraX64.h b/Minecraft.World/x64headers/extraX64.h index e351f4d48..b40171f02 100644 --- a/Minecraft.World/x64headers/extraX64.h +++ b/Minecraft.World/x64headers/extraX64.h @@ -11,7 +11,6 @@ #define MULTITHREAD_ENABLE -typedef unsigned char byte; const int XUSER_INDEX_ANY = 255; const int XUSER_INDEX_FOCUS = 254; @@ -51,6 +50,10 @@ inline void InitializeCriticalSection(CRITICAL_SECTION* stubEnterCS) { } +inline void InitializeCriticalSectionAndSpinCount(CRITICAL_SECTION* CriticalSection, ULONG SpinCount) +{ +} + inline void DeleteCriticalSection(CRITICAL_SECTION* stubEnterCS) { }