From f315d20bd68b437a7e1ad090f0fadcfd463fae46 Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Thu, 28 Jun 2012 16:59:27 -0500 Subject: [PATCH] Based on my nunchuk findings, remove decryption from classic and gh3 --- src/classic.c | 4 ---- src/guitar_hero_3.c | 4 ---- 2 files changed, 8 deletions(-) diff --git a/src/classic.c b/src/classic.c index d543409..cd2f914 100644 --- a/src/classic.c +++ b/src/classic.c @@ -59,10 +59,6 @@ int classic_ctrl_handshake(struct wiimote_t* wm, struct classic_ctrl_t* cc, byte cc->r_shoulder = 0; cc->l_shoulder = 0; - /* decrypt data */ - for (i = 0; i < len; ++i) - data[i] = (data[i] ^ 0x17) + 0x17; - if (data[offset] == 0xFF) { /* * Sometimes the data returned here is not correct. diff --git a/src/guitar_hero_3.c b/src/guitar_hero_3.c index 4b582db..cefe5ca 100644 --- a/src/guitar_hero_3.c +++ b/src/guitar_hero_3.c @@ -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->whammy_bar = 0.0f; - /* decrypt data */ - for (i = 0; i < len; ++i) - data[i] = (data[i] ^ 0x17) + 0x17; - if (data[offset] == 0xFF) { /* * Sometimes the data returned here is not correct.