mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-05-27 13:54:39 +00:00
Use standard buffer types for in-memory textures
This commit is contained in:
@@ -802,8 +802,8 @@ void PlayerConnection::handleTexture(std::shared_ptr<TexturePacket> packet)
|
||||
#ifndef _CONTENT_PACKAGE
|
||||
wprintf(L"Server received request for custom texture %ls\n",packet->textureName.c_str());
|
||||
#endif
|
||||
PBYTE pbData=NULL;
|
||||
DWORD dwBytes=0;
|
||||
std::uint8_t *pbData=NULL;
|
||||
unsigned int dwBytes=0;
|
||||
app.GetMemFileDetails(packet->textureName,&pbData,&dwBytes);
|
||||
|
||||
if(dwBytes!=0)
|
||||
@@ -836,8 +836,8 @@ void PlayerConnection::handleTextureAndGeometry(std::shared_ptr<TextureAndGeomet
|
||||
#ifndef _CONTENT_PACKAGE
|
||||
wprintf(L"Server received request for custom texture %ls\n",packet->textureName.c_str());
|
||||
#endif
|
||||
PBYTE pbData=NULL;
|
||||
DWORD dwTextureBytes=0;
|
||||
std::uint8_t *pbData=NULL;
|
||||
unsigned int dwTextureBytes=0;
|
||||
app.GetMemFileDetails(packet->textureName,&pbData,&dwTextureBytes);
|
||||
DLCSkinFile *pDLCSkinFile = app.m_dlcManager.getSkinFile(packet->textureName);
|
||||
|
||||
@@ -900,8 +900,8 @@ void PlayerConnection::handleTextureReceived(const std::wstring &textureName)
|
||||
AUTO_VAR(it, find( m_texturesRequested.begin(), m_texturesRequested.end(), textureName ));
|
||||
if( it != m_texturesRequested.end() )
|
||||
{
|
||||
PBYTE pbData=NULL;
|
||||
DWORD dwBytes=0;
|
||||
std::uint8_t *pbData=NULL;
|
||||
unsigned int dwBytes=0;
|
||||
app.GetMemFileDetails(textureName,&pbData,&dwBytes);
|
||||
|
||||
if(dwBytes!=0)
|
||||
@@ -918,8 +918,8 @@ void PlayerConnection::handleTextureAndGeometryReceived(const std::wstring &text
|
||||
AUTO_VAR(it, find( m_texturesRequested.begin(), m_texturesRequested.end(), textureName ));
|
||||
if( it != m_texturesRequested.end() )
|
||||
{
|
||||
PBYTE pbData=NULL;
|
||||
DWORD dwTextureBytes=0;
|
||||
std::uint8_t *pbData=NULL;
|
||||
unsigned int dwTextureBytes=0;
|
||||
app.GetMemFileDetails(textureName,&pbData,&dwTextureBytes);
|
||||
DLCSkinFile *pDLCSkinFile=app.m_dlcManager.getSkinFile(textureName);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user