new compile on linux

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1817 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee 2009-01-07 08:44:57 +00:00
parent f50746cf0e
commit 5d961c03ef
2 changed files with 4 additions and 3 deletions

View File

@ -176,7 +176,7 @@ void ConfigDialog::GeneralSettingsChanged(wxCommandEvent& event)
DoExtensionConnectedDisconnected();
/* It doesn't seem to be needed but shouldn't it at least take 25 ms to
reconnect an extension after we disconnected another? */
Sleep(25);
sleep(25);
}
// Update status
@ -208,4 +208,4 @@ void ConfigDialog::GeneralSettingsChanged(wxCommandEvent& event)
DoExtensionConnectedDisconnected();
break;
}
}
}

View File

@ -523,12 +523,13 @@ void FillReportExtension(wm_extension& _ext)
by 0x08 */
memcpy(g_RegExtTmpReport + 0x08, &_ext, sizeof(_ext));
#ifdef _WIN32
/**/if(GetAsyncKeyState('V')) // Log
{
std::string Temp = ArrayToString(g_RegExtTmpReport, sizeof(_ext), 0x08);
wprintf("Nunchuck DataFrame: %s\n", Temp.c_str());
}
#endif
// Encrypt it
wiimote_encrypt(&g_ExtKey, &g_RegExtTmpReport[0x08], 0x08, sizeof(_ext));