Fixes hid.
Fix small bug in ssl when testing certain demos.
This commit is contained in:
parent
98a038aefb
commit
7de9bda35e
|
@ -14,7 +14,9 @@ namespace WII_IPC_HLE_Interface
|
|||
|
||||
#define IPC_FIRST_ID 0x00 // first IPC device ID
|
||||
#define IPC_MAX_FILES 0x10 // first IPC file ID
|
||||
|
||||
|
||||
void EnqueReplyCallback(u64 userdata, int =0);
|
||||
|
||||
// Init
|
||||
void Init();
|
||||
|
||||
|
|
|
@ -60,7 +60,7 @@ void CWII_IPC_HLE_Device_hid::checkUsbUpdates(CWII_IPC_HLE_Device_hid* hid)
|
|||
// Return value
|
||||
Memory::Write_U32(0, hid->deviceCommandAddress + 4);
|
||||
|
||||
WII_IPC_HLE_Interface::EnqReply(hid->deviceCommandAddress);
|
||||
WII_IPC_HLE_Interface::EnqueReplyCallback(hid->deviceCommandAddress);
|
||||
hid->deviceCommandAddress = 0;
|
||||
}
|
||||
}
|
||||
|
@ -87,7 +87,7 @@ void CWII_IPC_HLE_Device_hid::handleUsbUpdates(struct libusb_transfer *transfer)
|
|||
// Return value
|
||||
Memory::Write_U32(ret, replyAddress + 4);
|
||||
|
||||
WII_IPC_HLE_Interface::EnqReply(replyAddress);
|
||||
WII_IPC_HLE_Interface::EnqueReplyCallback(replyAddress);
|
||||
//DEBUG_LOG(WII_IPC_HID, "OMG OMG OMG I GOT A CALLBACK, IMMA BE FAMOUS %d %d %d", transfer->actual_length, transfer->length, transfer->status);
|
||||
}
|
||||
|
||||
|
|
|
@ -215,7 +215,7 @@ bool CWII_IPC_HLE_Device_net_ssl::IOCtlV(u32 _CommandAddress)
|
|||
ssl_set_verify(&_SSL[sslID].ctx, _verify_certificate_callback, NULL);
|
||||
|
||||
ssl_set_endpoint(&_SSL[sslID].ctx, SSL_IS_CLIENT);
|
||||
ssl_set_authmode(&_SSL[sslID].ctx, SSL_VERIFY_OPTIONAL);
|
||||
ssl_set_authmode(&_SSL[sslID].ctx, SSL_VERIFY_NONE);
|
||||
ssl_set_renegotiation(&_SSL[sslID].ctx, SSL_RENEGOTIATION_ENABLED);
|
||||
|
||||
memcpy(_SSL[sslID].hostname, hostname, min((int)BufferOutSize2, NET_SSL_MAX_HOSTNAME_LEN));
|
||||
|
|
Loading…
Reference in New Issue