Implemented Auto-Unpair (MS bluetooth stack). For those people, who are tired of removing the batteries after they were finished playing around with dolphin, to avoid battery drain. It's switchable via checkbox within the wiimote gui. This will simply remove valid wiimote pairings on Exit/Close.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5373 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
snzgoo
2010-04-15 16:47:55 +00:00
parent 7a7d1a7b55
commit 6cc0ddadd4
7 changed files with 37 additions and 10 deletions

View File

@ -104,6 +104,9 @@ BOOL APIENTRY DllMain(HINSTANCE hinstDLL, // DLL module handle
break;
case DLL_PROCESS_DETACH:
#ifdef _WIN32
if (g_Config.bUnpairRealWiimote) WiiMoteReal::WiimotePairUp(true);
#endif
#if defined(HAVE_WX) && HAVE_WX
wxUninitialize();
#endif