From cc754e04d536522380fb792c543a2fa706a61fc2 Mon Sep 17 00:00:00 2001 From: John Peterson Date: Fri, 23 Jan 2009 10:25:10 +0000 Subject: [PATCH] PluginManager: Comments git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1992 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Core/Src/PluginManager.cpp | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/Source/Core/Core/Src/PluginManager.cpp b/Source/Core/Core/Src/PluginManager.cpp index a7f723b614..8aab58a9ed 100644 --- a/Source/Core/Core/Src/PluginManager.cpp +++ b/Source/Core/Core/Src/PluginManager.cpp @@ -44,14 +44,22 @@ CPluginManager::CPluginManager() : m_params(SConfig::GetInstance().m_LocalCoreStartupParameter) { m_PluginGlobals = new PLUGIN_GLOBALS; + //m_InputManager = new InputManager(); + m_PluginGlobals->eventHandler = EventHandler::GetInstance(); m_PluginGlobals->config = (void *)&SConfig::GetInstance(); - m_PluginGlobals->messageLogger = NULL; - + m_PluginGlobals->messageLogger = NULL; + //m_PluginGlobals->inputManager = m_InputManager; } -// Function: FreeLibrary() -// Called from: This will be called when Dolphin is closed, not when we Stop a game +/* Function: FreeLibrary() + Called from: In an attempt to avoid the crash that occurs when the use LoadLibrary() and + FreeLibrary() often (every game a game is stopped and started) these functions will only + be used when + 1. Dolphin is started + 2. A plugin is changed + 3. Dolphin is closed + it will not be used when we Start and Stop games. */ CPluginManager::~CPluginManager() { Console::Print("Delete CPluginManager\n");