When refreshing real wiimotes in linux, make sure that real wiimotes have been initialized first. Thanks Billiard.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5861 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Glenn Rice 2010-07-09 04:02:36 +00:00
parent 0284a7a1df
commit df32603ba4

View file

@ -348,6 +348,13 @@ void Shutdown(void)
#ifdef __linux__
void Refresh()
{
// make sure real wiimotes have been initialized
if (!g_real_wiimotes_initialized)
{
Initialize();
return;
}
// find the number of slots configured for real wiimotes
unsigned int wanted_wiimotes = 0;
for (unsigned int i = 0; i < MAX_WIIMOTES; ++i)