mirror of
https://github.com/Maschell/controller_patcher.git
synced 2024-11-21 19:49:16 +01:00
Added variables for a missing connection callback
This commit is contained in:
parent
5e732f123c
commit
42fc97a37e
@ -78,7 +78,8 @@ void ControllerPatcher::ResetConfig(){
|
||||
memset(gNetworkController,0,sizeof(gNetworkController)); // 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));
|
||||
gCallbackCooldown = 0;
|
||||
|
||||
@ -479,7 +480,8 @@ void ControllerPatcher::DeInit(){
|
||||
memset(config_controller_hidmask,0,sizeof(config_controller_hidmask));
|
||||
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));
|
||||
gCallbackCooldown = 0;
|
||||
|
||||
|
@ -57,9 +57,9 @@ u16 gNetworkController[gHIDMaxDevices][HID_MAX_PADS_COUNT][4] __attribute__((sec
|
||||
s32 gHIDNetworkClientID __attribute__((section(".data"))) = 0;
|
||||
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")));
|
||||
u8 gCallbackCooldown __attribute__((section(".data"))) = 0;
|
||||
|
||||
u32 gUDPClientip __attribute__((section(".data"))) = 0;
|
||||
|
||||
|
@ -59,11 +59,11 @@ extern s32 gHIDNetworkClientID;
|
||||
|
||||
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 u8 gCallbackCooldown;
|
||||
|
||||
extern u32 gUDPClientip;
|
||||
|
||||
|
||||
#endif // CP_RETAINS_VARS_H_
|
||||
|
Loading…
Reference in New Issue
Block a user