diff options
| author | hrydgard <hrydgard@gmail.com> | 2009-01-23 21:28:55 +0000 |
|---|---|---|
| committer | hrydgard <hrydgard@gmail.com> | 2009-01-23 21:28:55 +0000 |
| commit | 70bc8167f8af6aa053b9335209c80f554d8fb597 (patch) | |
| tree | 275f4138c1f0441be64ec0676d01fc365f8ffcb3 /Source/Core/Common/Src/Plugin.cpp | |
| parent | 7ecf884f9ae9b3cb8632b858999bf45d97211523 (diff) | |
Warp back to 1983!!! (rev 1983, that is, not the year :P)
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1997 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common/Src/Plugin.cpp')
| -rw-r--r-- | Source/Core/Common/Src/Plugin.cpp | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/Source/Core/Common/Src/Plugin.cpp b/Source/Core/Common/Src/Plugin.cpp index dd67c76b3b..15bd184bcf 100644 --- a/Source/Core/Common/Src/Plugin.cpp +++ b/Source/Core/Common/Src/Plugin.cpp @@ -37,10 +37,8 @@ CPlugin::~CPlugin() CPlugin::CPlugin(const char* _szName) : valid(false) { - if (m_hInstLib.Load(_szName)) - { + if (m_hInstLib.Load(_szName)) { - // Create pointers to the DLL functions m_GetDllInfo = reinterpret_cast<TGetDllInfo> (m_hInstLib.Get("GetDllInfo")); m_DllConfig = reinterpret_cast<TDllConfig> @@ -58,28 +56,24 @@ CPlugin::CPlugin(const char* _szName) : valid(false) } if (m_GetDllInfo != 0 && - m_DllConfig != 0 && - m_DllDebugger != 0 && - m_SetDllGlobals != 0 && - m_Initialize != 0 && - m_Shutdown != 0 && - m_DoState != 0) + m_DllConfig != 0 && + m_DllDebugger != 0 && + m_SetDllGlobals != 0 && + m_Initialize != 0 && + m_Shutdown != 0 && + m_DoState != 0) valid = true; - // Save the filename for this plugin - Filename = _szName; } -void *CPlugin::LoadSymbol(const char *sym) -{ +void *CPlugin::LoadSymbol(const char *sym) { return m_hInstLib.Get(sym); } // ______________________________________________________________________________________ // GetInfo: Get DLL info -bool CPlugin::GetInfo(PLUGIN_INFO& _pluginInfo) -{ +bool CPlugin::GetInfo(PLUGIN_INFO& _pluginInfo) { if (m_GetDllInfo != 0) { m_GetDllInfo(&_pluginInfo); |
