mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-06-08 20:22:55 +00:00
Remove DWORD texture pack IDs from image metadata APIs
This commit is contained in:
parent
fc1e696409
commit
26c3ac6197
|
|
@ -7631,7 +7631,7 @@ unsigned int CMinecraftApp::FromBigEndian(unsigned int uiValue)
|
|||
#endif
|
||||
}
|
||||
|
||||
void CMinecraftApp::GetImageTextData(PBYTE pbImageData, DWORD dwImageBytes,unsigned char *pszSeed,unsigned int &uiHostOptions,bool &bHostOptionsRead,DWORD &uiTexturePack)
|
||||
void CMinecraftApp::GetImageTextData(PBYTE pbImageData, DWORD dwImageBytes,unsigned char *pszSeed,unsigned int &uiHostOptions,bool &bHostOptionsRead,std::uint32_t &uiTexturePack)
|
||||
{
|
||||
unsigned char *ucPtr=pbImageData;
|
||||
unsigned int uiCount=0;
|
||||
|
|
|
|||
|
|
@ -703,7 +703,7 @@ public:
|
|||
bool CanRecordStatsAndAchievements();
|
||||
|
||||
// World seed from png image
|
||||
void GetImageTextData(PBYTE pbImageData, DWORD dwImageBytes,unsigned char *pszSeed,unsigned int &uiHostOptions,bool &bHostOptionsRead,DWORD &uiTexturePack);
|
||||
void GetImageTextData(PBYTE pbImageData, DWORD dwImageBytes,unsigned char *pszSeed,unsigned int &uiHostOptions,bool &bHostOptionsRead,std::uint32_t &uiTexturePack);
|
||||
unsigned int CreateImageTextData(PBYTE bTextMetadata, __int64 seed, bool hasSeed, unsigned int uiHostOptions, unsigned int uiTexturePackId);
|
||||
|
||||
// Game rules
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
#include "../../../../Minecraft.World/Platform/stdafx.h"
|
||||
|
||||
#include "SonyRemoteStorage_PS3.h"
|
||||
#include <cstdint>
|
||||
#include <stdio.h>
|
||||
#include <string>
|
||||
#include <stdlib.h>
|
||||
|
|
@ -341,7 +342,7 @@ bool SonyRemoteStorage_PS3::setDataInternal()
|
|||
{
|
||||
unsigned int uiHostOptions;
|
||||
bool bHostOptionsRead;
|
||||
DWORD uiTexturePack;
|
||||
std::uint32_t uiTexturePack = 0;
|
||||
char seed[22];
|
||||
app.GetImageTextData(m_thumbnailData, m_thumbnailDataSize,(unsigned char *)seed, uiHostOptions, bHostOptionsRead, uiTexturePack);
|
||||
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
#include "SonyRemoteStorage_Vita.h"
|
||||
#include "SonyHttp_Vita.h"
|
||||
#include <cstdint>
|
||||
#include <stdio.h>
|
||||
#include <string>
|
||||
#include <stdlib.h>
|
||||
|
|
@ -313,7 +314,7 @@ bool SonyRemoteStorage_Vita::setDataInternal()
|
|||
{
|
||||
unsigned int uiHostOptions;
|
||||
bool bHostOptionsRead;
|
||||
DWORD uiTexturePack;
|
||||
std::uint32_t uiTexturePack = 0;
|
||||
char seed[22];
|
||||
app.GetImageTextData(m_thumbnailData, m_thumbnailDataSize,(unsigned char *)seed, uiHostOptions, bHostOptionsRead, uiTexturePack);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue