mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-07-23 17:47:05 +00:00
Use standard TMSPP buffers in common app
This commit is contained in:
parent
05f47282da
commit
7ae8c7c373
|
|
@ -8313,7 +8313,7 @@ int CMinecraftApp::TMSPPFileReturned(void *pParam,int iPad,int iUserData,C4JStor
|
|||
case e_DLC_TexturePackData:
|
||||
{
|
||||
// 4J-PB - we need to allocate memory for the file data and copy into it, since the current data is a reference into the blob download memory
|
||||
PBYTE pbData = new BYTE [pFileData->dwSize];
|
||||
std::uint8_t *pbData = new std::uint8_t[pFileData->dwSize];
|
||||
memcpy(pbData,pFileData->pbData,pFileData->dwSize);
|
||||
|
||||
pClass->m_vTMSPPData.push_back(pbData);
|
||||
|
|
@ -8328,7 +8328,7 @@ int CMinecraftApp::TMSPPFileReturned(void *pParam,int iPad,int iUserData,C4JStor
|
|||
if(pFileData->pbData[0]==0x89)
|
||||
{
|
||||
// 4J-PB - we need to allocate memory for the file data and copy into it, since the current data is a reference into the blob download memory
|
||||
PBYTE pbData = new BYTE [pFileData->dwSize];
|
||||
std::uint8_t *pbData = new std::uint8_t[pFileData->dwSize];
|
||||
memcpy(pbData,pFileData->pbData,pFileData->dwSize);
|
||||
|
||||
pClass->m_vTMSPPData.push_back(pbData);
|
||||
|
|
|
|||
|
|
@ -369,9 +369,9 @@ public:
|
|||
private:
|
||||
PlayerUID m_xuidNotch;
|
||||
#ifdef _DURANGO
|
||||
std::unordered_map<PlayerUID, PBYTE, PlayerUID::Hash> m_GTS_Files;
|
||||
std::unordered_map<PlayerUID, std::uint8_t *, PlayerUID::Hash> m_GTS_Files;
|
||||
#else
|
||||
std::unordered_map<PlayerUID, PBYTE> m_GTS_Files;
|
||||
std::unordered_map<PlayerUID, std::uint8_t *> m_GTS_Files;
|
||||
#endif
|
||||
|
||||
// for storing memory textures - player skin
|
||||
|
|
@ -858,7 +858,7 @@ private:
|
|||
bool m_bResetNether;
|
||||
std::uint32_t m_dwRequiredTexturePackID;
|
||||
#ifdef _XBOX_ONE
|
||||
std::vector <PBYTE> m_vTMSPPData;
|
||||
std::vector<std::uint8_t *> m_vTMSPPData;
|
||||
#endif
|
||||
|
||||
#if ( defined __PS3__ || defined __ORBIS__ || defined _DURANGO || defined __PSVITA__)
|
||||
|
|
|
|||
Loading…
Reference in a new issue