Based on my nunchuk findings, remove decryption from classic and gh3
This commit is contained in:
@@ -59,10 +59,6 @@ int classic_ctrl_handshake(struct wiimote_t* wm, struct classic_ctrl_t* cc, byte
|
|||||||
cc->r_shoulder = 0;
|
cc->r_shoulder = 0;
|
||||||
cc->l_shoulder = 0;
|
cc->l_shoulder = 0;
|
||||||
|
|
||||||
/* decrypt data */
|
|
||||||
for (i = 0; i < len; ++i)
|
|
||||||
data[i] = (data[i] ^ 0x17) + 0x17;
|
|
||||||
|
|
||||||
if (data[offset] == 0xFF) {
|
if (data[offset] == 0xFF) {
|
||||||
/*
|
/*
|
||||||
* Sometimes the data returned here is not correct.
|
* Sometimes the data returned here is not correct.
|
||||||
|
|||||||
@@ -65,10 +65,6 @@ int guitar_hero_3_handshake(struct wiimote_t* wm, struct guitar_hero_3_t* gh3, b
|
|||||||
gh3->btns_released = 0;
|
gh3->btns_released = 0;
|
||||||
gh3->whammy_bar = 0.0f;
|
gh3->whammy_bar = 0.0f;
|
||||||
|
|
||||||
/* decrypt data */
|
|
||||||
for (i = 0; i < len; ++i)
|
|
||||||
data[i] = (data[i] ^ 0x17) + 0x17;
|
|
||||||
|
|
||||||
if (data[offset] == 0xFF) {
|
if (data[offset] == 0xFF) {
|
||||||
/*
|
/*
|
||||||
* Sometimes the data returned here is not correct.
|
* Sometimes the data returned here is not correct.
|
||||||
|
|||||||
Reference in New Issue
Block a user