summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Src/Plugin.cpp
diff options
context:
space:
mode:
authorJohn Peterson <jpeterson57@gmail.com>2009-01-22 11:18:46 +0000
committerJohn Peterson <jpeterson57@gmail.com>2009-01-22 11:18:46 +0000
commite332e18ce65fdc19495746697c862251f74d6c35 (patch)
tree8028852e01bb07bcb82143e8b541e10b33a88801 /Source/Core/Common/Src/Plugin.cpp
parent189285f071ad4107cfda5b05db0876befa40c703 (diff)
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
Diffstat (limited to 'Source/Core/Common/Src/Plugin.cpp')
-rw-r--r--Source/Core/Common/Src/Plugin.cpp29
1 files changed, 18 insertions, 11 deletions
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);
}