mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-11 08:39:13 +01:00
Only initialize the Wiimote plugin if booting in Wii mode.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1535 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
0412d0811a
commit
64a74c2ba4
@ -304,12 +304,14 @@ THREAD_RETURN EmuThread(void *pArg)
|
|||||||
PADInitialize.pLog = Callback_PADLog;
|
PADInitialize.pLog = Callback_PADLog;
|
||||||
PluginPAD::PAD_Initialize(PADInitialize);
|
PluginPAD::PAD_Initialize(PADInitialize);
|
||||||
|
|
||||||
// Load and Init WiimotePlugin
|
// Load and Init WiimotePlugin - only if we are booting in wii mode
|
||||||
SWiimoteInitialize WiimoteInitialize;
|
if (_CoreParameter.bWii) {
|
||||||
WiimoteInitialize.hWnd = g_pWindowHandle;
|
SWiimoteInitialize WiimoteInitialize;
|
||||||
WiimoteInitialize.pLog = Callback_WiimoteLog;
|
WiimoteInitialize.hWnd = g_pWindowHandle;
|
||||||
WiimoteInitialize.pWiimoteInput = Callback_WiimoteInput;
|
WiimoteInitialize.pLog = Callback_WiimoteLog;
|
||||||
PluginWiimote::Wiimote_Initialize(WiimoteInitialize);
|
WiimoteInitialize.pWiimoteInput = Callback_WiimoteInput;
|
||||||
|
PluginWiimote::Wiimote_Initialize(WiimoteInitialize);
|
||||||
|
}
|
||||||
|
|
||||||
// The hardware is initialized.
|
// The hardware is initialized.
|
||||||
g_bHwInit = true;
|
g_bHwInit = true;
|
||||||
@ -385,8 +387,11 @@ THREAD_RETURN EmuThread(void *pArg)
|
|||||||
|
|
||||||
PluginPAD::PAD_Shutdown();
|
PluginPAD::PAD_Shutdown();
|
||||||
PluginPAD::UnloadPlugin();
|
PluginPAD::UnloadPlugin();
|
||||||
PluginWiimote::Wiimote_Shutdown();
|
if (_CoreParameter.bWii)
|
||||||
PluginWiimote::UnloadPlugin();
|
{
|
||||||
|
PluginWiimote::Wiimote_Shutdown();
|
||||||
|
PluginWiimote::UnloadPlugin();
|
||||||
|
}
|
||||||
PluginDSP::DSP_Shutdown();
|
PluginDSP::DSP_Shutdown();
|
||||||
PluginDSP::UnloadPlugin();
|
PluginDSP::UnloadPlugin();
|
||||||
PluginVideo::Video_Shutdown();
|
PluginVideo::Video_Shutdown();
|
||||||
|
@ -64,9 +64,11 @@ namespace HW
|
|||||||
ExpansionInterface::Init();
|
ExpansionInterface::Init();
|
||||||
CCPU::Init();
|
CCPU::Init();
|
||||||
SystemTimers::Init();
|
SystemTimers::Init();
|
||||||
|
if (Core::GetStartupParameter().bWii)
|
||||||
WII_IPC_HLE_Interface::Init();
|
{
|
||||||
WII_IPCInterface::Init();
|
WII_IPC_HLE_Interface::Init();
|
||||||
|
WII_IPCInterface::Init();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Shutdown()
|
void Shutdown()
|
||||||
@ -80,8 +82,11 @@ namespace HW
|
|||||||
SerialInterface::Shutdown();
|
SerialInterface::Shutdown();
|
||||||
AudioInterface::Shutdown();
|
AudioInterface::Shutdown();
|
||||||
|
|
||||||
WII_IPC_HLE_Interface::Shutdown();
|
if (Core::GetStartupParameter().bWii)
|
||||||
WII_IPCInterface::Shutdown();
|
{
|
||||||
|
WII_IPC_HLE_Interface::Shutdown();
|
||||||
|
WII_IPCInterface::Shutdown();
|
||||||
|
}
|
||||||
|
|
||||||
State_Shutdown();
|
State_Shutdown();
|
||||||
Thunk_Shutdown();
|
Thunk_Shutdown();
|
||||||
|
@ -105,7 +105,7 @@ bool BootCore(const std::string& _rFilename)
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if ( !StartUp.AutoSetup(SCoreStartupParameter::BOOT_DEFAULT) )
|
if (!StartUp.AutoSetup(SCoreStartupParameter::BOOT_DEFAULT))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user