mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-07-13 17:28:07 +00:00
Remove Win32 callback types from common UI scenes
This commit is contained in:
@@ -281,7 +281,7 @@ void UIScene_MainMenu::handlePress(F64 controlId, F64 childId)
|
||||
{
|
||||
int primaryPad = ProfileManager.GetPrimaryPad();
|
||||
|
||||
int (*signInReturnedFunc) (LPVOID,const bool, const int iPad) = NULL;
|
||||
int (*signInReturnedFunc) (void *,const bool, const int iPad) = NULL;
|
||||
|
||||
switch((int)controlId)
|
||||
{
|
||||
@@ -1042,7 +1042,7 @@ void UIScene_MainMenu::RefreshChatAndContentRestrictionsReturned_PlayGame(void *
|
||||
|
||||
UIScene_MainMenu* pClass = (UIScene_MainMenu*)pParam;
|
||||
|
||||
int (*signInReturnedFunc) (LPVOID,const bool, const int iPad) = NULL;
|
||||
int (*signInReturnedFunc) (void *,const bool, const int iPad) = NULL;
|
||||
|
||||
// 4J-PB - Check if there is a patch for the game
|
||||
pClass->m_errorCode = ProfileManager.getNPAvailability(ProfileManager.GetPrimaryPad());
|
||||
@@ -1131,7 +1131,7 @@ void UIScene_MainMenu::RefreshChatAndContentRestrictionsReturned_Leaderboards(vo
|
||||
|
||||
UIScene_MainMenu* pClass = (UIScene_MainMenu*)pParam;
|
||||
|
||||
int (*signInReturnedFunc) (LPVOID,const bool, const int iPad) = NULL;
|
||||
int (*signInReturnedFunc) (void *,const bool, const int iPad) = NULL;
|
||||
|
||||
// 4J-PB - Check if there is a patch for the game
|
||||
pClass->m_errorCode = ProfileManager.getNPAvailability(ProfileManager.GetPrimaryPad());
|
||||
|
||||
@@ -15,8 +15,8 @@ private:
|
||||
eControl_COUNT
|
||||
};
|
||||
|
||||
int( *m_Func)(LPVOID,int,const C4JStorage::EMessageResult);
|
||||
LPVOID m_lpParam;
|
||||
int( *m_Func)(void *,int,const C4JStorage::EMessageResult);
|
||||
void *m_lpParam;
|
||||
int m_buttonCount;
|
||||
|
||||
UIControl_Button m_buttonButtons[eControl_COUNT];
|
||||
@@ -56,4 +56,4 @@ public:
|
||||
|
||||
protected:
|
||||
void handlePress(F64 controlId, F64 childId);
|
||||
};
|
||||
};
|
||||
|
||||
@@ -198,7 +198,7 @@ int UIScene_QuadrantSignin::SignInReturned(void *pParam,bool bContinue, int iPad
|
||||
}
|
||||
|
||||
#ifdef _DURANGO
|
||||
void UIScene_QuadrantSignin::checkAllPrivilegesCallback(LPVOID lpParam, bool hasPrivileges, int iPad)
|
||||
void UIScene_QuadrantSignin::checkAllPrivilegesCallback(void *lpParam, bool hasPrivileges, int iPad)
|
||||
{
|
||||
UIScene_QuadrantSignin* pClass = (UIScene_QuadrantSignin*)lpParam;
|
||||
|
||||
@@ -269,7 +269,7 @@ void UIScene_QuadrantSignin::setControllerState(int iPad, EControllerStatus stat
|
||||
}
|
||||
}
|
||||
|
||||
int UIScene_QuadrantSignin::AvatarReturned(LPVOID lpParam,PBYTE pbThumbnail,DWORD dwThumbnailBytes)
|
||||
int UIScene_QuadrantSignin::AvatarReturned(void *lpParam, std::uint8_t *pbThumbnail,DWORD dwThumbnailBytes)
|
||||
{
|
||||
UIScene_QuadrantSignin *pClass = (UIScene_QuadrantSignin *)lpParam;
|
||||
app.DebugPrintf(app.USER_SR,"AvatarReturned callback\n");
|
||||
|
||||
@@ -99,12 +99,12 @@ public:
|
||||
|
||||
private:
|
||||
static int SignInReturned(void *pParam,bool bContinue, int iPad);
|
||||
static int AvatarReturned(LPVOID lpParam,PBYTE pbThumbnail,DWORD dwThumbnailBytes);
|
||||
static int AvatarReturned(void *lpParam, std::uint8_t *pbThumbnail, DWORD dwThumbnailBytes);
|
||||
|
||||
void updateState();
|
||||
void setControllerState(int iPad, EControllerStatus state);
|
||||
|
||||
#ifdef _DURANGO
|
||||
static void checkAllPrivilegesCallback(LPVOID lpParam, bool hasPrivileges, int iPad);
|
||||
static void checkAllPrivilegesCallback(void *lpParam, bool hasPrivileges, int iPad);
|
||||
#endif
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user