mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 16:49:58 -06:00
some linux stop issue fix (still not working right) please check on windows
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2076 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -132,6 +132,23 @@ bool CPluginManager::InitPlugins()
|
||||
|
||||
void CPluginManager::ShutdownPlugins()
|
||||
{
|
||||
for (int i = 0; i < MAXPADS; i++) {
|
||||
if (m_pad[i] && OkayToInitPlugin(i)) {
|
||||
m_pad[i]->Shutdown();
|
||||
}
|
||||
}
|
||||
|
||||
for (int i = 0; i < MAXWIIMOTES; i++) {
|
||||
if (m_wiimote[i]) m_wiimote[i]->Shutdown();
|
||||
}
|
||||
|
||||
if (m_video)
|
||||
m_video->Shutdown();
|
||||
|
||||
if (m_dsp)
|
||||
m_dsp->Shutdown();
|
||||
|
||||
|
||||
for (int i = 0; i < MAXPADS; i++) {
|
||||
if (m_pad[i] && OkayToInitPlugin(i)) {
|
||||
Console::Print("Delete: %i\n", i);
|
||||
@ -140,24 +157,17 @@ void CPluginManager::ShutdownPlugins()
|
||||
m_pad[i] = NULL;
|
||||
}
|
||||
|
||||
for (int i = 0; i < MAXWIIMOTES; i++) {
|
||||
if (m_wiimote[i]) m_wiimote[i]->Shutdown();
|
||||
}
|
||||
|
||||
for (int i = 0; i < MAXWIIMOTES; i++) {
|
||||
delete m_wiimote[i];
|
||||
m_wiimote[i] = NULL;
|
||||
}
|
||||
|
||||
if (m_video)
|
||||
m_video->Shutdown();
|
||||
delete m_dsp;
|
||||
m_dsp = NULL;
|
||||
|
||||
delete m_video;
|
||||
m_video = NULL;
|
||||
|
||||
if (m_dsp)
|
||||
m_dsp->Shutdown();
|
||||
delete m_dsp;
|
||||
m_dsp = NULL;
|
||||
}
|
||||
|
||||
// Supporting functions
|
||||
|
Reference in New Issue
Block a user