Added variables for a missing connection callback

This commit is contained in:
Maschell 2017-04-14 12:59:40 +02:00
parent 5e732f123c
commit 42fc97a37e
3 changed files with 8 additions and 6 deletions

View File

@ -78,7 +78,8 @@ void ControllerPatcher::ResetConfig(){
memset(gNetworkController,0,sizeof(gNetworkController)); // Init / Invalid everything memset(gNetworkController,0,sizeof(gNetworkController)); // Init / Invalid everything
memset(gHID_Devices,0,sizeof(gHID_Devices)); // Init / Invalid everything memset(gHID_Devices,0,sizeof(gHID_Devices)); // Init / Invalid everything
memset(gConnectCallback,0,sizeof(gConnectCallback)); memset(gWPADConnectCallback,0,sizeof(gWPADConnectCallback));
memset(gKPADConnectCallback,0,sizeof(gKPADConnectCallback));
memset(gExtensionCallback,0,sizeof(gExtensionCallback)); memset(gExtensionCallback,0,sizeof(gExtensionCallback));
gCallbackCooldown = 0; gCallbackCooldown = 0;
@ -479,7 +480,8 @@ void ControllerPatcher::DeInit(){
memset(config_controller_hidmask,0,sizeof(config_controller_hidmask)); memset(config_controller_hidmask,0,sizeof(config_controller_hidmask));
memset(gNetworkController,0,sizeof(gNetworkController)); memset(gNetworkController,0,sizeof(gNetworkController));
memset(gConnectCallback,0,sizeof(gConnectCallback)); memset(gWPADConnectCallback,0,sizeof(gWPADConnectCallback));
memset(gKPADConnectCallback,0,sizeof(gKPADConnectCallback));
memset(gExtensionCallback,0,sizeof(gExtensionCallback)); memset(gExtensionCallback,0,sizeof(gExtensionCallback));
gCallbackCooldown = 0; gCallbackCooldown = 0;

View File

@ -57,9 +57,9 @@ u16 gNetworkController[gHIDMaxDevices][HID_MAX_PADS_COUNT][4] __attribute__((sec
s32 gHIDNetworkClientID __attribute__((section(".data"))) = 0; s32 gHIDNetworkClientID __attribute__((section(".data"))) = 0;
u8 gUsedProtocolVersion __attribute__((section(".data"))) = WIIU_CP_TCP_HANDSHAKE; u8 gUsedProtocolVersion __attribute__((section(".data"))) = WIIU_CP_TCP_HANDSHAKE;
wpad_connect_callback_t gConnectCallback[4] __attribute__((section(".data"))); wpad_connect_callback_t gWPADConnectCallback[4] __attribute__((section(".data")));
wpad_connect_callback_t gKPADConnectCallback[4] __attribute__((section(".data")));
wpad_extension_callback_t gExtensionCallback[4] __attribute__((section(".data"))); wpad_extension_callback_t gExtensionCallback[4] __attribute__((section(".data")));
u8 gCallbackCooldown __attribute__((section(".data"))) = 0; u8 gCallbackCooldown __attribute__((section(".data"))) = 0;
u32 gUDPClientip __attribute__((section(".data"))) = 0; u32 gUDPClientip __attribute__((section(".data"))) = 0;

View File

@ -59,11 +59,11 @@ extern s32 gHIDNetworkClientID;
extern u8 gUsedProtocolVersion; extern u8 gUsedProtocolVersion;
extern wpad_connect_callback_t gConnectCallback[4]; extern wpad_connect_callback_t gWPADConnectCallback[4];
extern wpad_connect_callback_t gKPADConnectCallback[4];
extern wpad_extension_callback_t gExtensionCallback[4]; extern wpad_extension_callback_t gExtensionCallback[4];
extern u8 gCallbackCooldown; extern u8 gCallbackCooldown;
extern u32 gUDPClientip; extern u32 gUDPClientip;
#endif // CP_RETAINS_VARS_H_ #endif // CP_RETAINS_VARS_H_