mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-12-02 22:18:09 +01:00
linux (compat): Add linux to most Win64 guards
This commit is contained in:
1 parent
8cf5675892
commit
9626065598
180 files changed
+941
-935
No files matched your search
@@ -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 ¤t, 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())
|
||||
|
||||
Reference in new issue
Block a user