From e332e18ce65fdc19495746697c862251f74d6c35 Mon Sep 17 00:00:00 2001 From: John Peterson Date: Thu, 22 Jan 2009 11:18:46 +0000 Subject: nJoy and SerialInterface: Fixed the crashes with MAXPADS more than 1, the downside is that it doesn't work well one the second boot git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1980 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Common/Src/Plugin.cpp | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) (limited to 'Source/Core/Common/Src/Plugin.cpp') diff --git a/Source/Core/Common/Src/Plugin.cpp b/Source/Core/Common/Src/Plugin.cpp index 24aa5bd8f4..15bd184bcf 100644 --- a/Source/Core/Common/Src/Plugin.cpp +++ b/Source/Core/Common/Src/Plugin.cpp @@ -70,25 +70,32 @@ void *CPlugin::LoadSymbol(const char *sym) { return m_hInstLib.Get(sym); } + +// ______________________________________________________________________________________ +// GetInfo: Get DLL info bool CPlugin::GetInfo(PLUGIN_INFO& _pluginInfo) { - if (m_GetDllInfo != 0) { - m_GetDllInfo(&_pluginInfo); - return(true); + if (m_GetDllInfo != 0) + { + m_GetDllInfo(&_pluginInfo); + return(true); } return(false); } - -void CPlugin::Config(HWND _hwnd) { - if (m_DllConfig != 0) - m_DllConfig(_hwnd); - +// ______________________________________________________________________________________ +// Config: Open the Config window +void CPlugin::Config(HWND _hwnd) +{ + if (m_DllConfig != 0) m_DllConfig(_hwnd); } -void CPlugin::Debug(HWND _hwnd, bool Show) { - if (m_DllDebugger != 0) - m_DllDebugger(_hwnd, Show); + +// ______________________________________________________________________________________ +// Debug: Open the Debugging window +void CPlugin::Debug(HWND _hwnd, bool Show) +{ + if (m_DllDebugger != 0) m_DllDebugger(_hwnd, Show); } -- cgit v1.2.3