From b45c5214c250a81dca89116673090c58e2b7bfeb Mon Sep 17 00:00:00 2001 From: LPFaint99 Date: Sun, 12 Jul 2009 04:10:08 +0000 Subject: [PATCH] Attempt to fix a crash on close from PluginManager, tested linux and windows add the ability to either keep all of dolphin's settings in the same folder, or set up a permanent working directory read from a text file in %appdata%/ (windows) ~/ (linux) allows registering gcm ...etc to open with dolphin, badly illustrated guide here http://i31.tinypic.com/6pb8yp.jpg use the guide at your own risk, I am not responsible if you mess up your registry (But I will laugh :P ) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3759 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Core/Src/PluginManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/Core/Src/PluginManager.cpp b/Source/Core/Core/Src/PluginManager.cpp index 219e87a164..02c41eac2b 100644 --- a/Source/Core/Core/Src/PluginManager.cpp +++ b/Source/Core/Core/Src/PluginManager.cpp @@ -111,7 +111,7 @@ CPluginManager::~CPluginManager() for (int i = 0; i < MAXPADS; i++) { - if (m_pad[i] && (OkayToInitPlugin(i) != -1)) + if (m_pad[i] && (OkayToInitPlugin(i) == -1)) { INFO_LOG(CONSOLE, "Delete: %i\n", i); delete m_pad[i]; @@ -555,4 +555,4 @@ void CPluginManager::OpenDebug(void* _Parent, const char *_rFilename, PLUGIN_TYP PanicAlert("Type %d debug not supported in plugin %s", Type, _rFilename); } } -/////////////////////////////////////////// +