summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Src/Plugin.cpp
diff options
context:
space:
mode:
authorJohn Peterson <jpeterson57@gmail.com>2008-11-16 20:09:13 +0000
committerJohn Peterson <jpeterson57@gmail.com>2008-11-16 20:09:13 +0000
commitbe6a6215c9942d82e6be0586df285b494aed1c48 (patch)
tree1e095511db77028d2894b2c27f2e56cf4e54b500 /Source/Core/Common/Src/Plugin.cpp
parentecf6825a97ddd6f6c88e1362a67c571cee2a3223 (diff)
Calibrated emulated Wiimote aiming in widescreen mode. Added config menu to Wiimote. Added hide cursor option to OpenGL plugin. Added custom Wii settings and moved SYSCONF to User/Config (it will be copied by the game to Wii/shared2/sys when a game is run). Made the DSP and Video debugging windowses run on the same dll instance as the main instance.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1188 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common/Src/Plugin.cpp')
-rw-r--r--Source/Core/Common/Src/Plugin.cpp22
1 files changed, 16 insertions, 6 deletions
diff --git a/Source/Core/Common/Src/Plugin.cpp b/Source/Core/Common/Src/Plugin.cpp
index 6fac48f598..6a157f8b03 100644
--- a/Source/Core/Common/Src/Plugin.cpp
+++ b/Source/Core/Common/Src/Plugin.cpp
@@ -15,6 +15,16 @@
// Official SVN repository and contact information can be found at
// http://code.google.com/p/dolphin-emu/
+
+
+// =======================================================
+// File description
+// -------------
+/* This file is a simpler version of Plugin_...cpp found in Core. This file only loads
+ the config and debugging windowses and works with all plugins. */
+// =============
+
+
#include "Plugin.h"
namespace Common
@@ -24,7 +34,7 @@ DynamicLibrary CPlugin::m_hInstLib;
void(__cdecl * CPlugin::m_GetDllInfo) (PLUGIN_INFO * _PluginInfo) = 0;
//void(__cdecl * CPlugin::m_DllAbout) (HWND _hParent) = 0;
void(__cdecl * CPlugin::m_DllConfig) (HWND _hParent) = 0;
-void(__cdecl * CPlugin::m_DllDebugger) (HWND _hParent) = 0;
+void(__cdecl * CPlugin::m_DllDebugger) (HWND _hParent, bool Show) = 0;
void
CPlugin::Release(void)
@@ -42,9 +52,9 @@ CPlugin::Load(const char* _szName)
{
if (m_hInstLib.Load(_szName))
{
- m_GetDllInfo = (void (__cdecl*)(PLUGIN_INFO*))m_hInstLib.Get("GetDllInfo");
- m_DllConfig = (void (__cdecl*)(HWND))m_hInstLib.Get("DllConfig");
- m_DllDebugger = (void (__cdecl*)(HWND))m_hInstLib.Get("DllDebugger");
+ m_GetDllInfo = (void (__cdecl*)(PLUGIN_INFO*)) m_hInstLib.Get("GetDllInfo");
+ m_DllConfig = (void (__cdecl*)(HWND)) m_hInstLib.Get("DllConfig");
+ m_DllDebugger = (void (__cdecl*)(HWND, bool)) m_hInstLib.Get("DllDebugger");
return(true);
}
@@ -80,11 +90,11 @@ void CPlugin::Config(HWND _hwnd)
// }
//}
-void CPlugin::Debug(HWND _hwnd)
+void CPlugin::Debug(HWND _hwnd, bool Show)
{
if (m_DllDebugger != 0)
{
- m_DllDebugger(_hwnd);
+ m_DllDebugger(_hwnd, Show);
}
}
} // end of namespace Common