replace all windows api types
This commit is contained in:
@@ -25,8 +25,8 @@ using namespace std;
|
||||
|
||||
typedef struct _JoinFromInviteData
|
||||
{
|
||||
DWORD dwUserIndex; // dwUserIndex
|
||||
DWORD dwLocalUsersMask; // dwUserMask
|
||||
unsigned long dwUserIndex; // dwUserIndex
|
||||
unsigned long dwLocalUsersMask; // dwUserMask
|
||||
const INVITE_INFO *pInviteInfo; // pInviteInfo
|
||||
}
|
||||
JoinFromInviteData;
|
||||
@@ -121,7 +121,7 @@ public:
|
||||
|
||||
bool IsAppPaused();
|
||||
void SetAppPaused(bool val);
|
||||
static int DisplaySavingMessage(LPVOID pParam,const C4JStorage::ESavingMessage eMsg, int iPad);
|
||||
static int DisplaySavingMessage(void* pParam,const C4JStorage::ESavingMessage eMsg, int iPad);
|
||||
bool GetGameStarted() {return m_bGameStarted;}
|
||||
void SetGameStarted(bool bVal) { if(bVal) DebugPrintf("SetGameStarted - true\n"); else DebugPrintf("SetGameStarted - false\n"); m_bGameStarted = bVal; m_bIsAppPaused = !bVal;}
|
||||
int GetLocalPlayerCount(void);
|
||||
@@ -143,7 +143,7 @@ public:
|
||||
|
||||
void SetSpecialTutorialCompletionFlag(int iPad, int index);
|
||||
|
||||
static LPCWSTR GetString(int iID);
|
||||
static const wchar_t* GetString(int iID);
|
||||
|
||||
eGameMode GetGameMode() { return m_eGameMode;}
|
||||
void SetGameMode(eGameMode eMode) { m_eGameMode=eMode;}
|
||||
@@ -151,12 +151,12 @@ public:
|
||||
eXuiAction GetGlobalXuiAction() {return m_eGlobalXuiAction;}
|
||||
void SetGlobalXuiAction(eXuiAction action) {m_eGlobalXuiAction=action;}
|
||||
eXuiAction GetXuiAction(int iPad) {return m_eXuiAction[iPad];}
|
||||
void SetAction(int iPad, eXuiAction action, LPVOID param = NULL);
|
||||
void SetAction(int iPad, eXuiAction action, void* param = NULL);
|
||||
void SetTMSAction(int iPad, eTMSAction action) {m_eTMSAction[iPad]=action; }
|
||||
eTMSAction GetTMSAction(int iPad) {return m_eTMSAction[iPad];}
|
||||
eXuiServerAction GetXuiServerAction(int iPad) {return m_eXuiServerAction[iPad];}
|
||||
LPVOID GetXuiServerActionParam(int iPad) {return m_eXuiServerActionParam[iPad];}
|
||||
void SetXuiServerAction(int iPad, eXuiServerAction action, LPVOID param = NULL) {m_eXuiServerAction[iPad]=action; m_eXuiServerActionParam[iPad] = param;}
|
||||
void* GetXuiServerActionParam(int iPad) {return m_eXuiServerActionParam[iPad];}
|
||||
void SetXuiServerAction(int iPad, eXuiServerAction action, void* param = NULL) {m_eXuiServerAction[iPad]=action; m_eXuiServerActionParam[iPad] = param;}
|
||||
eXuiServerAction GetGlobalXuiServerAction() {return m_eGlobalXuiServerAction;}
|
||||
void SetGlobalXuiServerAction(eXuiServerAction action) {m_eGlobalXuiServerAction=action;}
|
||||
|
||||
@@ -171,7 +171,7 @@ public:
|
||||
|
||||
|
||||
// 4J Stu - Added so that we can call this when a confirmation box is selected
|
||||
static void SetActionConfirmed(LPVOID param);
|
||||
static void SetActionConfirmed(void* param);
|
||||
void HandleXuiActions(void);
|
||||
|
||||
// 4J Stu - Functions used for Minecon and other promo work
|
||||
@@ -192,7 +192,7 @@ public:
|
||||
void SetFreezePlayers(bool bVal) { m_bFreezePlayers = bVal; }
|
||||
|
||||
// debug -0 show safe area
|
||||
void ShowSafeArea(BOOL bShow)
|
||||
void ShowSafeArea(bool bShow)
|
||||
{
|
||||
#ifdef _XBOX
|
||||
CXuiSceneBase::ShowSafeArea( bShow );
|
||||
@@ -203,23 +203,23 @@ public:
|
||||
//void GetPreviewImage(int iPad,XSOCIAL_PREVIEWIMAGE *preview);
|
||||
|
||||
void InitGameSettings();
|
||||
static int OldProfileVersionCallback(LPVOID pParam,unsigned char *pucData, const unsigned short usVersion, const int iPad);
|
||||
static int OldProfileVersionCallback(void* pParam,unsigned char *pucData, const unsigned short usVersion, const int iPad);
|
||||
|
||||
#if ( defined __PS3__ || defined __ORBIS__ || defined _DURANGO || defined __PSVITA__ )
|
||||
static int DefaultOptionsCallback(LPVOID pParam,C4JStorage::PROFILESETTINGS *pSettings, const int iPad);
|
||||
static int DefaultOptionsCallback(void* pParam,C4JStorage::PROFILESETTINGS *pSettings, const int iPad);
|
||||
int SetDefaultOptions(C4JStorage::PROFILESETTINGS *pSettings,const int iPad,bool bWriteProfile=true);
|
||||
#ifdef __ORBIS__
|
||||
static int OptionsDataCallback(LPVOID pParam,int iPad,unsigned short usVersion,C4JStorage::eOptionsCallback eStatus,int iBlocksRequired);
|
||||
static int OptionsDataCallback(void* pParam,int iPad,unsigned short usVersion,C4JStorage::eOptionsCallback eStatus,int iBlocksRequired);
|
||||
int GetOptionsBlocksRequired(int iPad);
|
||||
#else
|
||||
static int OptionsDataCallback(LPVOID pParam,int iPad,unsigned short usVersion,C4JStorage::eOptionsCallback eStatus);
|
||||
static int OptionsDataCallback(void* pParam,int iPad,unsigned short usVersion,C4JStorage::eOptionsCallback eStatus);
|
||||
#endif
|
||||
|
||||
C4JStorage::eOptionsCallback GetOptionsCallbackStatus(int iPad);
|
||||
|
||||
void SetOptionsCallbackStatus(int iPad, C4JStorage::eOptionsCallback eStatus);
|
||||
#else
|
||||
static int DefaultOptionsCallback(LPVOID pParam,C_4JProfile::PROFILESETTINGS *pSettings, const int iPad);
|
||||
static int DefaultOptionsCallback(void* pParam,C_4JProfile::PROFILESETTINGS *pSettings, const int iPad);
|
||||
int SetDefaultOptions(C_4JProfile::PROFILESETTINGS *pSettings,const int iPad);
|
||||
#endif
|
||||
virtual void SetRichPresenceContext(int iPad, int contextId) = 0;
|
||||
@@ -229,9 +229,9 @@ public:
|
||||
unsigned char GetGameSettings(int iPad,eGameSetting eVal);
|
||||
unsigned char GetGameSettings(eGameSetting eVal); // for the primary pad
|
||||
void SetPlayerSkin(int iPad,const wstring &name);
|
||||
void SetPlayerSkin(int iPad,DWORD dwSkinId);
|
||||
void SetPlayerSkin(int iPad,unsigned long dwSkinId);
|
||||
void SetPlayerCape(int iPad,const wstring &name);
|
||||
void SetPlayerCape(int iPad,DWORD dwCapeId);
|
||||
void SetPlayerCape(int iPad,unsigned long dwCapeId);
|
||||
void SetPlayerFavoriteSkin(int iPad, int iIndex,unsigned int uiSkinID);
|
||||
unsigned int GetPlayerFavoriteSkin(int iPad,int iIndex);
|
||||
unsigned char GetPlayerFavoriteSkinsPos(int iPad);
|
||||
@@ -256,10 +256,10 @@ public:
|
||||
|
||||
public:
|
||||
wstring GetPlayerSkinName(int iPad);
|
||||
DWORD GetPlayerSkinId(int iPad);
|
||||
unsigned long GetPlayerSkinId(int iPad);
|
||||
wstring GetPlayerCapeName(int iPad);
|
||||
DWORD GetPlayerCapeId(int iPad);
|
||||
DWORD GetAdditionalModelParts(int iPad);
|
||||
unsigned long GetPlayerCapeId(int iPad);
|
||||
unsigned long GetAdditionalModelParts(int iPad);
|
||||
void CheckGameSettingsChanged(bool bOverride5MinuteTimer=false, int iPad=XUSER_INDEX_ANY);
|
||||
void ApplyGameSettingsChanged(int iPad);
|
||||
void ClearGameSettingsChangedFlag(int iPad);
|
||||
@@ -272,7 +272,7 @@ public:
|
||||
bool IsLocalMultiplayerAvailable();
|
||||
|
||||
// for sign in change monitoring
|
||||
static void SignInChangeCallback(LPVOID pParam, bool bVal, unsigned int uiSignInData);
|
||||
static void SignInChangeCallback(void* pParam, bool bVal, unsigned int uiSignInData);
|
||||
static void ClearSignInChangeUsersMask();
|
||||
static int SignoutExitWorldThreadProc( void* lpParameter );
|
||||
static int PrimaryPlayerSignedOutReturned(void *pParam, int iPad, const C4JStorage::EMessageResult);
|
||||
@@ -283,14 +283,14 @@ public:
|
||||
virtual void FatalLoadError();
|
||||
|
||||
// Notifications from the game listener to be passed to the qnet listener
|
||||
static void NotificationsCallback(LPVOID pParam,DWORD dwNotification, unsigned int uiParam);
|
||||
static void NotificationsCallback(void* pParam,unsigned long dwNotification, unsigned int uiParam);
|
||||
|
||||
// for the ethernet being disconnected
|
||||
static void LiveLinkChangeCallback(LPVOID pParam,BOOL bConnected);
|
||||
static void LiveLinkChangeCallback(void* pParam,bool bConnected);
|
||||
bool GetLiveLinkRequired() {return m_bLiveLinkRequired;}
|
||||
void SetLiveLinkRequired(bool required) {m_bLiveLinkRequired=required;}
|
||||
|
||||
static void UpsellReturnedCallback(LPVOID pParam, eUpsellType type, eUpsellResponse result, int iUserData);
|
||||
static void UpsellReturnedCallback(void* pParam, eUpsellType type, eUpsellResponse result, int iUserData);
|
||||
|
||||
#if defined __PS3__ || defined __PSVITA__ || defined __ORBIS__
|
||||
static int NowDisplayFullVersionPurchase(void *pParam, bool bContinue, int iPad);
|
||||
@@ -306,21 +306,21 @@ public:
|
||||
bool DebugSettingsOn() { return false;}
|
||||
#endif
|
||||
void SetDebugSequence(const char *pchSeq);
|
||||
static int DebugInputCallback(LPVOID pParam);
|
||||
static int DebugInputCallback(void* pParam);
|
||||
//bool UploadFileToGlobalStorage(int iQuadrant, C4JStorage::eGlobalStorage eStorageFacility, wstring *wsFile );
|
||||
|
||||
// Installed DLC
|
||||
bool StartInstallDLCProcess(int iPad);
|
||||
static int DLCInstalledCallback(LPVOID pParam,int iOfferC,int iPad);
|
||||
static int DLCInstalledCallback(void* pParam,int iOfferC,int iPad);
|
||||
void HandleDLCLicenseChange();
|
||||
static int DLCMountedCallback(LPVOID pParam,int iPad,DWORD dwErr,DWORD dwLicenceMask);
|
||||
static int DLCMountedCallback(void* pParam,int iPad,unsigned long dwErr,unsigned long dwLicenceMask);
|
||||
void MountNextDLC(int iPad);
|
||||
//static int DLCReadCallback(LPVOID pParam,C4JStorage::DLC_FILE_DETAILS *pDLCData);
|
||||
//static int DLCReadCallback(void* pParam,C4JStorage::DLC_FILE_DETAILS *pDLCData);
|
||||
void HandleDLC(DLCPack *pack);
|
||||
bool DLCInstallPending() {return m_bDLCInstallPending;}
|
||||
bool DLCInstallProcessCompleted() {return m_bDLCInstallProcessCompleted;}
|
||||
void ClearDLCInstalled() { m_bDLCInstallProcessCompleted=false;}
|
||||
static int MarketplaceCountsCallback(LPVOID pParam,C4JStorage::DLC_TMS_DETAILS *,int iPad);
|
||||
static int MarketplaceCountsCallback(void* pParam,C4JStorage::DLC_TMS_DETAILS *,int iPad);
|
||||
|
||||
bool AlreadySeenCreditText(const wstring &wstemp);
|
||||
|
||||
@@ -336,19 +336,19 @@ public:
|
||||
bool isXuidNotch(PlayerUID xuid);
|
||||
bool isXuidDeadmau5(PlayerUID xuid);
|
||||
|
||||
void AddMemoryTextureFile(const wstring &wName, PBYTE pbData, DWORD dwBytes);
|
||||
void AddMemoryTextureFile(const wstring &wName, uint8_t* pbData, unsigned long dwBytes);
|
||||
void RemoveMemoryTextureFile(const wstring &wName);
|
||||
void GetMemFileDetails(const wstring &wName,PBYTE *ppbData,DWORD *pdwBytes);
|
||||
void GetMemFileDetails(const wstring &wName,uint8_t* *ppbData,unsigned long *pdwBytes);
|
||||
bool IsFileInMemoryTextures(const wstring &wName);
|
||||
|
||||
// Texture Pack Data files (icon, banner, comparison shot & text)
|
||||
void AddMemoryTPDFile(int iConfig,PBYTE pbData,DWORD dwBytes);
|
||||
void AddMemoryTPDFile(int iConfig,uint8_t* pbData,unsigned long dwBytes);
|
||||
void RemoveMemoryTPDFile(int iConfig);
|
||||
bool IsFileInTPD(int iConfig);
|
||||
void GetTPD(int iConfig,PBYTE *ppbData,DWORD *pdwBytes);
|
||||
void GetTPD(int iConfig,uint8_t* *ppbData,unsigned long *pdwBytes);
|
||||
int GetTPDSize() {return m_MEM_TPD.size();}
|
||||
#ifndef __PS3__
|
||||
int GetTPConfigVal(WCHAR *pwchDataFile);
|
||||
int GetTPConfigVal(wchar_t *pwchDataFile);
|
||||
#endif
|
||||
|
||||
bool DefaultCapeExists();
|
||||
@@ -356,17 +356,17 @@ public:
|
||||
|
||||
// invites
|
||||
//void ProcessInvite(JoinFromInviteData *pJoinData);
|
||||
void ProcessInvite(DWORD dwUserIndex, DWORD dwLocalUsersMask, const INVITE_INFO * pInviteInfo);
|
||||
void ProcessInvite(unsigned long dwUserIndex, unsigned long dwLocalUsersMask, const INVITE_INFO * pInviteInfo);
|
||||
|
||||
// Add credits for DLC installed
|
||||
void AddCreditText(LPCWSTR lpStr);
|
||||
void AddCreditText(const wchar_t* lpStr);
|
||||
|
||||
private:
|
||||
PlayerUID m_xuidNotch;
|
||||
#ifdef _DURANGO
|
||||
unordered_map<PlayerUID, PBYTE, PlayerUID::Hash> m_GTS_Files;
|
||||
unordered_map<PlayerUID, uint8_t*, PlayerUID::Hash> m_GTS_Files;
|
||||
#else
|
||||
unordered_map<PlayerUID, PBYTE> m_GTS_Files;
|
||||
unordered_map<PlayerUID, uint8_t*> m_GTS_Files;
|
||||
#endif
|
||||
|
||||
// for storing memory textures - player skin
|
||||
@@ -380,8 +380,8 @@ private:
|
||||
|
||||
public:
|
||||
// launch data
|
||||
BYTE* m_pLaunchData;
|
||||
DWORD m_dwLaunchDataSize;
|
||||
uint8_t* m_pLaunchData;
|
||||
unsigned long m_dwLaunchDataSize;
|
||||
|
||||
public:
|
||||
// BAN LIST
|
||||
@@ -480,7 +480,7 @@ public:
|
||||
|
||||
|
||||
|
||||
static const DWORD m_dwOfferID = 0x00000001;
|
||||
static const unsigned long m_dwOfferID = 0x00000001;
|
||||
|
||||
// timer
|
||||
void InitTime();
|
||||
@@ -500,10 +500,10 @@ private:
|
||||
// we'll action these at the end of the game loop
|
||||
eXuiAction m_eXuiAction[XUSER_MAX_COUNT];
|
||||
eTMSAction m_eTMSAction[XUSER_MAX_COUNT];
|
||||
LPVOID m_eXuiActionParam[XUSER_MAX_COUNT];
|
||||
void* m_eXuiActionParam[XUSER_MAX_COUNT];
|
||||
eXuiAction m_eGlobalXuiAction;
|
||||
eXuiServerAction m_eXuiServerAction[XUSER_MAX_COUNT];
|
||||
LPVOID m_eXuiServerActionParam[XUSER_MAX_COUNT];
|
||||
void* m_eXuiServerActionParam[XUSER_MAX_COUNT];
|
||||
eXuiServerAction m_eGlobalXuiServerAction;
|
||||
|
||||
bool m_bLiveLinkRequired;
|
||||
@@ -544,7 +544,7 @@ protected:
|
||||
static Random *TipRandom;
|
||||
public:
|
||||
void InitialiseTips();
|
||||
UINT GetNextTip();
|
||||
unsigned int GetNextTip();
|
||||
int GetHTMLColour(eMinecraftColour colour);
|
||||
int GetHTMLColor(eMinecraftColour colour) { return GetHTMLColour(colour); }
|
||||
int GetHTMLFontSize(EHTMLFontSize size);
|
||||
@@ -557,11 +557,11 @@ public:
|
||||
void UpdateTrialPausedTimer() { mfTrialPausedTime+= m_Time.fElapsedTime;}
|
||||
|
||||
static int RemoteSaveThreadProc( void* lpParameter );
|
||||
static void ExitGameFromRemoteSave( LPVOID lpParameter );
|
||||
static void ExitGameFromRemoteSave( void* lpParameter );
|
||||
static int ExitGameFromRemoteSaveDialogReturned(void *pParam,int iPad,C4JStorage::EMessageResult result);
|
||||
private:
|
||||
UINT m_TipIDA[MAX_TIPS_GAMETIP+MAX_TIPS_TRIVIATIP];
|
||||
UINT m_uiCurrentTip;
|
||||
unsigned int m_TipIDA[MAX_TIPS_GAMETIP+MAX_TIPS_TRIVIATIP];
|
||||
unsigned int m_uiCurrentTip;
|
||||
static int TipsSortFunction(const void* a, const void* b);
|
||||
|
||||
// XML
|
||||
@@ -574,26 +574,26 @@ public:
|
||||
bool GetTerrainFeaturePosition(_eTerrainFeatureType eType, int *pX, int *pZ);
|
||||
std::vector <FEATURE_DATA *> m_vTerrainFeatures;
|
||||
|
||||
static HRESULT RegisterMojangData(WCHAR *, PlayerUID, WCHAR *, WCHAR *);
|
||||
static int RegisterMojangData(wchar_t *, PlayerUID, wchar_t *, wchar_t *);
|
||||
MOJANG_DATA *GetMojangDataForXuid(PlayerUID xuid);
|
||||
static HRESULT RegisterConfigValues(WCHAR *pType, int iValue);
|
||||
static int RegisterConfigValues(wchar_t *pType, int iValue);
|
||||
|
||||
#if defined(__PS3__) || defined(__ORBIS__) || defined(__PSVITA__)
|
||||
HRESULT RegisterDLCData(char *pchDLCName, unsigned int uiSortIndex, char *pchImageURL);
|
||||
bool GetDLCFullOfferIDForSkinID(const wstring &FirstSkin,ULONGLONG *pullVal);
|
||||
DLC_INFO *GetDLCInfoForTrialOfferID(ULONGLONG ullOfferID_Trial);
|
||||
DLC_INFO *GetDLCInfoForFullOfferID(ULONGLONG ullOfferID_Full);
|
||||
int RegisterDLCData(char *pchDLCName, unsigned int uiSortIndex, char *pchImageURL);
|
||||
bool GetDLCFullOfferIDForSkinID(const wstring &FirstSkin,uint64_t *pullVal);
|
||||
DLC_INFO *GetDLCInfoForTrialOfferID(uint64_t ullOfferID_Trial);
|
||||
DLC_INFO *GetDLCInfoForFullOfferID(uint64_t ullOfferID_Full);
|
||||
#elif defined(_XBOX_ONE)
|
||||
static HRESULT RegisterDLCData(eDLCContentType, WCHAR *, WCHAR *, WCHAR *, WCHAR *, int, unsigned int);
|
||||
//bool GetDLCFullOfferIDForSkinID(const wstring &FirstSkin,WCHAR *pwchProductId);
|
||||
static int RegisterDLCData(eDLCContentType, wchar_t *, wchar_t *, wchar_t *, wchar_t *, int, unsigned int);
|
||||
//bool GetDLCFullOfferIDForSkinID(const wstring &FirstSkin,wchar_t *pwchProductId);
|
||||
bool GetDLCFullOfferIDForSkinID(const wstring &FirstSkin,wstring &wsProductId);
|
||||
DLC_INFO *GetDLCInfoForFullOfferID(WCHAR *pwchProductId);
|
||||
DLC_INFO *GetDLCInfoForProductName(WCHAR *pwchProductName);
|
||||
DLC_INFO *GetDLCInfoForFullOfferID(wchar_t *pwchProductId);
|
||||
DLC_INFO *GetDLCInfoForProductName(wchar_t *pwchProductName);
|
||||
#else
|
||||
static HRESULT RegisterDLCData(WCHAR *, WCHAR *, int, __uint64, __uint64, WCHAR *, unsigned int, int, WCHAR *pDataFile);
|
||||
bool GetDLCFullOfferIDForSkinID(const wstring &FirstSkin,ULONGLONG *pullVal);
|
||||
DLC_INFO *GetDLCInfoForTrialOfferID(ULONGLONG ullOfferID_Trial);
|
||||
DLC_INFO *GetDLCInfoForFullOfferID(ULONGLONG ullOfferID_Full);
|
||||
static int RegisterDLCData(wchar_t *, wchar_t *, int, uint64_t, uint64_t, wchar_t *, unsigned int, int, wchar_t *pDataFile);
|
||||
bool GetDLCFullOfferIDForSkinID(const wstring &FirstSkin,uint64_t *pullVal);
|
||||
DLC_INFO *GetDLCInfoForTrialOfferID(uint64_t ullOfferID_Trial);
|
||||
DLC_INFO *GetDLCInfoForFullOfferID(uint64_t ullOfferID_Full);
|
||||
#endif
|
||||
|
||||
unsigned int GetDLCCreditsCount();
|
||||
@@ -605,9 +605,9 @@ public:
|
||||
|
||||
// images for save thumbnail/social post
|
||||
virtual void CaptureSaveThumbnail() =0;
|
||||
virtual void GetSaveThumbnail(PBYTE*,DWORD*)=0;
|
||||
virtual void GetSaveThumbnail(uint8_t**,unsigned long*)=0;
|
||||
virtual void ReleaseSaveThumbnail()=0;
|
||||
virtual void GetScreenshot(int iPad,PBYTE *pbData,DWORD *pdwSize)=0;
|
||||
virtual void GetScreenshot(int iPad,uint8_t* *pbData,unsigned long *pdwSize)=0;
|
||||
|
||||
virtual void ReadBannedList(int iPad, eTMSAction action=(eTMSAction)0, bool bCallback=false)=0;
|
||||
|
||||
@@ -619,7 +619,7 @@ private:
|
||||
static unordered_map<PlayerUID,MOJANG_DATA *, PlayerUID::Hash > MojangData;
|
||||
static unordered_map<int, char * > DLCTextures_PackID; // for mash-up packs & texture packs
|
||||
static unordered_map<string,DLC_INFO * > DLCInfo;
|
||||
static unordered_map<wstring, ULONGLONG > DLCInfo_SkinName; // skin name, full offer id
|
||||
static unordered_map<wstring, uint64_t > DLCInfo_SkinName; // skin name, full offer id
|
||||
#elif defined(_DURANGO)
|
||||
static unordered_map<PlayerUID,MOJANG_DATA *, PlayerUID::Hash > MojangData;
|
||||
static unordered_map<int, wstring > DLCTextures_PackID; // for mash-up packs & texture packs
|
||||
@@ -628,10 +628,10 @@ private:
|
||||
static unordered_map<wstring, wstring > DLCInfo_SkinName; // skin name, full offer id
|
||||
#else
|
||||
static unordered_map<PlayerUID,MOJANG_DATA * > MojangData;
|
||||
static unordered_map<int, ULONGLONG > DLCTextures_PackID; // for mash-up packs & texture packs
|
||||
static unordered_map<ULONGLONG,DLC_INFO * > DLCInfo_Trial; // full offerid, dlc_info
|
||||
static unordered_map<ULONGLONG,DLC_INFO * > DLCInfo_Full; // full offerid, dlc_info
|
||||
static unordered_map<wstring, ULONGLONG > DLCInfo_SkinName; // skin name, full offer id
|
||||
static unordered_map<int, uint64_t > DLCTextures_PackID; // for mash-up packs & texture packs
|
||||
static unordered_map<uint64_t,DLC_INFO * > DLCInfo_Trial; // full offerid, dlc_info
|
||||
static unordered_map<uint64_t,DLC_INFO * > DLCInfo_Full; // full offerid, dlc_info
|
||||
static unordered_map<wstring, uint64_t > DLCInfo_SkinName; // skin name, full offer id
|
||||
#endif
|
||||
// bool m_bRead_TMS_XUIDS_XML; // track whether we have already read the TMS xuids.xml file
|
||||
// bool m_bRead_TMS_DLCINFO_XML; // track whether we have already read the TMS DLC.xml file
|
||||
@@ -700,8 +700,8 @@ public:
|
||||
bool CanRecordStatsAndAchievements();
|
||||
|
||||
// World seed from png image
|
||||
void GetImageTextData(PBYTE pbImageData, DWORD dwImageBytes,unsigned char *pszSeed,unsigned int &uiHostOptions,bool &bHostOptionsRead,DWORD &uiTexturePack);
|
||||
unsigned int CreateImageTextData(PBYTE bTextMetadata, __int64 seed, bool hasSeed, unsigned int uiHostOptions, unsigned int uiTexturePackId);
|
||||
void GetImageTextData(uint8_t* pbImageData, unsigned long dwImageBytes,unsigned char *pszSeed,unsigned int &uiHostOptions,bool &bHostOptionsRead,unsigned long &uiTexturePack);
|
||||
unsigned int CreateImageTextData(uint8_t* bTextMetadata, int64_t seed, bool hasSeed, unsigned int uiHostOptions, unsigned int uiTexturePackId);
|
||||
|
||||
// Game rules
|
||||
GameRuleManager m_gameRules;
|
||||
@@ -714,16 +714,16 @@ public:
|
||||
void setLevelGenerationOptions(LevelGenerationOptions *levelGen);
|
||||
LevelRuleset *getGameRuleDefinitions() { return m_gameRules.getGameRuleDefinitions(); }
|
||||
LevelGenerationOptions *getLevelGenerationOptions() { return m_gameRules.getLevelGenerationOptions(); }
|
||||
LPCWSTR GetGameRulesString(const wstring &key);
|
||||
const wchar_t* GetGameRulesString(const wstring &key);
|
||||
|
||||
private:
|
||||
BYTE m_playerColours[MINECRAFT_NET_MAX_PLAYERS]; // An array of QNet small-id's
|
||||
uint8_t m_playerColours[MINECRAFT_NET_MAX_PLAYERS]; // An array of QNet small-id's
|
||||
unsigned int m_playerGamePrivileges[MINECRAFT_NET_MAX_PLAYERS];
|
||||
|
||||
public:
|
||||
void UpdatePlayerInfo(BYTE networkSmallId, SHORT playerColourIndex, unsigned int playerGamePrivileges);
|
||||
short GetPlayerColour(BYTE networkSmallId);
|
||||
unsigned int GetPlayerPrivileges(BYTE networkSmallId);
|
||||
void UpdatePlayerInfo(uint8_t networkSmallId, int16_t playerColourIndex, unsigned int playerGamePrivileges);
|
||||
short GetPlayerColour(uint8_t networkSmallId);
|
||||
unsigned int GetPlayerPrivileges(uint8_t networkSmallId);
|
||||
|
||||
wstring getEntityName(eINSTANCEOF type);
|
||||
|
||||
@@ -732,9 +732,9 @@ public:
|
||||
unsigned int AddDLCRequest(eDLCMarketplaceType eContentType, bool bPromote=false);
|
||||
bool RetrieveNextDLCContent();
|
||||
bool CheckTMSDLCCanStop();
|
||||
static int DLCOffersReturned(void *pParam, int iOfferC, DWORD dwType, int iPad);
|
||||
DWORD GetDLCContentType(eDLCContentType eType) { return m_dwContentTypeA[eType];}
|
||||
eDLCContentType Find_eDLCContentType(DWORD dwType);
|
||||
static int DLCOffersReturned(void *pParam, int iOfferC, unsigned long dwType, int iPad);
|
||||
unsigned long GetDLCContentType(eDLCContentType eType) { return m_dwContentTypeA[eType];}
|
||||
eDLCContentType Find_eDLCContentType(unsigned long dwType);
|
||||
int GetDLCOffersCount() { return m_iDLCOfferC;}
|
||||
bool DLCContentRetrieved(eDLCMarketplaceType eType);
|
||||
void TickDLCOffersRetrieved();
|
||||
@@ -754,10 +754,10 @@ public:
|
||||
#else
|
||||
|
||||
#ifdef _XBOX_ONE
|
||||
static int TMSPPFileReturned(LPVOID pParam,int iPad,int iUserData,LPVOID, WCHAR *wchFilename);
|
||||
static int TMSPPFileReturned(void* pParam,int iPad,int iUserData,void*, wchar_t *wchFilename);
|
||||
unordered_map<wstring,DLC_INFO * > *GetDLCInfo();
|
||||
#else
|
||||
static int TMSPPFileReturned(LPVOID pParam,int iPad,int iUserData,C4JStorage::PTMSPP_FILEDATA pFileData, LPCSTR szFilename);
|
||||
static int TMSPPFileReturned(void* pParam,int iPad,int iUserData,C4JStorage::PTMSPP_FILEDATA pFileData, const char* szFilename);
|
||||
#endif
|
||||
DLC_INFO *GetDLCInfoTrialOffer(int iIndex);
|
||||
DLC_INFO *GetDLCInfoFullOffer(int iIndex);
|
||||
@@ -769,8 +769,8 @@ public:
|
||||
wstring GetDLCInfoTexturesFullOffer(int iIndex);
|
||||
|
||||
#else
|
||||
bool GetDLCFullOfferIDForPackID(const int iPackID,ULONGLONG *pullVal);
|
||||
ULONGLONG GetDLCInfoTexturesFullOffer(int iIndex);
|
||||
bool GetDLCFullOfferIDForPackID(const int iPackID,uint64_t *pullVal);
|
||||
uint64_t GetDLCInfoTexturesFullOffer(int iIndex);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -787,7 +787,7 @@ private:
|
||||
//Request current_download;
|
||||
vector<DLCRequest *> m_DLCDownloadQueue;
|
||||
vector<TMSPPRequest *> m_TMSPPDownloadQueue;
|
||||
static DWORD m_dwContentTypeA[e_Marketplace_MAX];
|
||||
static unsigned long m_dwContentTypeA[e_Marketplace_MAX];
|
||||
int m_iDLCOfferC;
|
||||
bool m_bAllDLCContentRetrieved;
|
||||
bool m_bAllTMSContentRetrieved;
|
||||
@@ -799,34 +799,34 @@ private:
|
||||
CRITICAL_SECTION csAnimOverrideBitmask;
|
||||
bool m_bCorruptSaveDeleted;
|
||||
|
||||
DWORD m_dwAdditionalModelParts[XUSER_MAX_COUNT];
|
||||
unsigned long m_dwAdditionalModelParts[XUSER_MAX_COUNT];
|
||||
|
||||
BYTE *m_pBannedListFileBuffer;
|
||||
DWORD m_dwBannedListFileSize;
|
||||
uint8_t *m_pBannedListFileBuffer;
|
||||
unsigned long m_dwBannedListFileSize;
|
||||
|
||||
public:
|
||||
DWORD m_dwDLCFileSize;
|
||||
BYTE *m_pDLCFileBuffer;
|
||||
unsigned long m_dwDLCFileSize;
|
||||
uint8_t *m_pDLCFileBuffer;
|
||||
|
||||
// static int CallbackReadXuidsFileFromTMS(LPVOID lpParam, WCHAR *wchFilename, int iPad, bool bResult, int iAction);
|
||||
// static int CallbackDLCFileFromTMS(LPVOID lpParam, WCHAR *wchFilename, int iPad, bool bResult, int iAction);
|
||||
// static int CallbackBannedListFileFromTMS(LPVOID lpParam, WCHAR *wchFilename, int iPad, bool bResult, int iAction);
|
||||
// static int CallbackReadXuidsFileFromTMS(void* lpParam, wchar_t *wchFilename, int iPad, bool bResult, int iAction);
|
||||
// static int CallbackDLCFileFromTMS(void* lpParam, wchar_t *wchFilename, int iPad, bool bResult, int iAction);
|
||||
// static int CallbackBannedListFileFromTMS(void* lpParam, wchar_t *wchFilename, int iPad, bool bResult, int iAction);
|
||||
|
||||
// Storing additional model parts per skin texture
|
||||
void SetAdditionalSkinBoxes(DWORD dwSkinID, SKIN_BOX *SkinBoxA, DWORD dwSkinBoxC);
|
||||
vector<ModelPart *> * SetAdditionalSkinBoxes(DWORD dwSkinID, vector<SKIN_BOX *> *pvSkinBoxA);
|
||||
vector<ModelPart *> *GetAdditionalModelParts(DWORD dwSkinID);
|
||||
vector<SKIN_BOX *> *GetAdditionalSkinBoxes(DWORD dwSkinID);
|
||||
void SetAnimOverrideBitmask(DWORD dwSkinID,unsigned int uiAnimOverrideBitmask);
|
||||
unsigned int GetAnimOverrideBitmask(DWORD dwSkinID);
|
||||
void SetAdditionalSkinBoxes(unsigned long dwSkinID, SKIN_BOX *SkinBoxA, unsigned long dwSkinBoxC);
|
||||
vector<ModelPart *> * SetAdditionalSkinBoxes(unsigned long dwSkinID, vector<SKIN_BOX *> *pvSkinBoxA);
|
||||
vector<ModelPart *> *GetAdditionalModelParts(unsigned long dwSkinID);
|
||||
vector<SKIN_BOX *> *GetAdditionalSkinBoxes(unsigned long dwSkinID);
|
||||
void SetAnimOverrideBitmask(unsigned long dwSkinID,unsigned int uiAnimOverrideBitmask);
|
||||
unsigned int GetAnimOverrideBitmask(unsigned long dwSkinID);
|
||||
|
||||
static DWORD getSkinIdFromPath(const wstring &skin);
|
||||
static wstring getSkinPathFromId(DWORD skinId);
|
||||
static unsigned long getSkinIdFromPath(const wstring &skin);
|
||||
static wstring getSkinPathFromId(unsigned long skinId);
|
||||
|
||||
virtual int LoadLocalTMSFile(WCHAR *wchTMSFile)=0;
|
||||
virtual int LoadLocalTMSFile(WCHAR *wchTMSFile, eFileExtensionType eExt)=0;
|
||||
virtual int LoadLocalTMSFile(wchar_t *wchTMSFile)=0;
|
||||
virtual int LoadLocalTMSFile(wchar_t *wchTMSFile, eFileExtensionType eExt)=0;
|
||||
virtual void FreeLocalTMSFiles(eTMSFileType eType)=0;
|
||||
virtual int GetLocalTMSFileIndex(WCHAR *wchTMSFile,bool bFilenameIncludesExtension,eFileExtensionType eEXT)=0;
|
||||
virtual int GetLocalTMSFileIndex(wchar_t *wchTMSFile,bool bFilenameIncludesExtension,eFileExtensionType eEXT)=0;
|
||||
|
||||
virtual bool GetTMSGlobalFileListRead() { return true;}
|
||||
virtual bool GetTMSDLCInfoRead() { return true;}
|
||||
@@ -836,24 +836,24 @@ public:
|
||||
void SetBanListRead(int iPad,bool bVal) { m_bRead_BannedListA[iPad]=bVal;}
|
||||
void ClearBanList(int iPad) { BannedListA[iPad].pBannedList=NULL;BannedListA[iPad].dwBytes=0;}
|
||||
|
||||
DWORD GetRequiredTexturePackID() {return m_dwRequiredTexturePackID;}
|
||||
void SetRequiredTexturePackID(DWORD dwID) {m_dwRequiredTexturePackID=dwID;}
|
||||
unsigned long GetRequiredTexturePackID() {return m_dwRequiredTexturePackID;}
|
||||
void SetRequiredTexturePackID(unsigned long dwID) {m_dwRequiredTexturePackID=dwID;}
|
||||
|
||||
virtual void GetFileFromTPD(eTPDFileType eType,PBYTE pbData,DWORD dwBytes,PBYTE *ppbData,DWORD *pdwBytes ) {*ppbData = NULL; *pdwBytes = 0;}
|
||||
virtual void GetFileFromTPD(eTPDFileType eType,uint8_t* pbData,unsigned long dwBytes,uint8_t* *ppbData,unsigned long *pdwBytes ) {*ppbData = NULL; *pdwBytes = 0;}
|
||||
|
||||
//XTITLE_DEPLOYMENT_TYPE getDeploymentType() { return m_titleDeploymentType; }
|
||||
|
||||
private:
|
||||
// vector of additional skin model parts, indexed by the skin texture id
|
||||
unordered_map<DWORD, vector<ModelPart *> *> m_AdditionalModelParts;
|
||||
unordered_map<DWORD, vector<SKIN_BOX *> *> m_AdditionalSkinBoxes;
|
||||
unordered_map<DWORD, unsigned int> m_AnimOverrides;
|
||||
unordered_map<unsigned long, vector<ModelPart *> *> m_AdditionalModelParts;
|
||||
unordered_map<unsigned long, vector<SKIN_BOX *> *> m_AdditionalSkinBoxes;
|
||||
unordered_map<unsigned long, unsigned int> m_AnimOverrides;
|
||||
|
||||
|
||||
bool m_bResetNether;
|
||||
DWORD m_dwRequiredTexturePackID;
|
||||
unsigned long m_dwRequiredTexturePackID;
|
||||
#ifdef _XBOX_ONE
|
||||
vector <PBYTE> m_vTMSPPData;
|
||||
vector <uint8_t*> m_vTMSPPData;
|
||||
#endif
|
||||
|
||||
#if ( defined __PS3__ || defined __ORBIS__ || defined _DURANGO || defined __PSVITA__)
|
||||
@@ -870,18 +870,18 @@ public:
|
||||
|
||||
void LocaleAndLanguageInit();
|
||||
void getLocale(vector<wstring> &vecWstrLocales);
|
||||
DWORD get_eMCLang(WCHAR *pwchLocale);
|
||||
DWORD get_xcLang(WCHAR *pwchLocale);
|
||||
unsigned long get_eMCLang(wchar_t *pwchLocale);
|
||||
unsigned long get_xcLang(wchar_t *pwchLocale);
|
||||
|
||||
void SetTickTMSDLCFiles(bool bVal);
|
||||
|
||||
wstring getFilePath(DWORD packId, wstring filename, bool bAddDataFolder);
|
||||
wstring getFilePath(unsigned long packId, wstring filename, bool bAddDataFolder);
|
||||
|
||||
private:
|
||||
unordered_map<int, wstring>m_localeA;
|
||||
unordered_map<wstring, int>m_eMCLangA;
|
||||
unordered_map<wstring, int>m_xcLangA;
|
||||
wstring getRootPath(DWORD packId, bool allowOverride, bool bAddDataFolder);
|
||||
wstring getRootPath(unsigned long packId, bool allowOverride, bool bAddDataFolder);
|
||||
public:
|
||||
|
||||
#ifdef _XBOX
|
||||
@@ -908,4 +908,4 @@ private:
|
||||
};
|
||||
|
||||
//singleton
|
||||
//extern CMinecraftApp app;
|
||||
extern CMinecraftApp app;
|
||||
|
||||
Reference in New Issue
Block a user