linux (compat): Add linux to most Win64 guards

This commit is contained in:
Anaël committed 2026-11-29 13:33:39 +01:00
1 parent 8cf5675892
commit 9626065598
180 files changed
+941 -935

No files matched your search

+3 -3
View File
@@ -3,7 +3,7 @@
#include "SkullTileRenderer.h"
#include "../Minecraft.World/SkullTileEntity.h"
#include "HumanoidMobRenderer.h"
#ifdef _WINDOWS64
#if defined(_WINDOWS64) || defined(__linux__)
bool Win64_GetPlayerEarsTexture(PlayerUID onlineXuid, PlayerUID xuid, wstring &outPath);
bool Win64_ResolvePlayerCape(PlayerUID onlineXuid, PlayerUID xuid, const wstring &current, wstring &outPath);
#include "CosmeticModels.h"
@@ -440,7 +440,7 @@ void PlayerRenderer::additionalRendering(shared_ptr<LivingEntity> _mob, float a)
{
if (app.isXuidDeadmau5(mob->getXuid()))
drawEars = bindTexture(mob->customTextureUrl, L"");
#ifdef _WINDOWS64
#if defined(_WINDOWS64) || defined(__linux__)
wstring cosmeticTexture;
std::string cosmeticBoxes;
unsigned int cosmeticIndex = 0;
@@ -477,7 +477,7 @@ void PlayerRenderer::additionalRendering(shared_ptr<LivingEntity> _mob, float a)
shared_ptr<ItemInstance> capeChestItem = mob->inventory->armor[LivingEntity::SLOT_CHEST - 1];
bool wearingElytra = capeChestItem != nullptr && dynamic_cast<ElytraItem*>(capeChestItem->getItem()) != nullptr;
wstring capeTexture = mob->customTextureUrl2;
#ifdef _WINDOWS64
#if defined(_WINDOWS64) || defined(__linux__)
Win64_ResolvePlayerCape(mob->getOnlineXuid(), mob->getXuid(), mob->customTextureUrl2, capeTexture);
#endif
if (!wearingElytra && !capeTexture.empty() && bindTexture(capeTexture, L"") && !mob->isInvisible())