diff options
| author | hrydgard <hrydgard@gmail.com> | 2009-02-21 12:07:03 +0000 |
|---|---|---|
| committer | hrydgard <hrydgard@gmail.com> | 2009-02-21 12:07:03 +0000 |
| commit | 28cbd0a6ba531576227580ef7e263d23d704afb4 (patch) | |
| tree | 56bf1b0eae0c6cc4a738ce85ab7b78ca8f653f5d /Source/Core/Common/Src/Plugin.cpp | |
| parent | 76a78dd60d4eefdb8f1fada8e63bac7b0c4f5a94 (diff) | |
CPlugin had a non-virtual destructor. This fixes that, plus reindents a bunch of code.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2332 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common/Src/Plugin.cpp')
| -rw-r--r-- | Source/Core/Common/Src/Plugin.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/Source/Core/Common/Src/Plugin.cpp b/Source/Core/Common/Src/Plugin.cpp index 89ba44247e..d39d1683d3 100644 --- a/Source/Core/Common/Src/Plugin.cpp +++ b/Source/Core/Common/Src/Plugin.cpp @@ -67,7 +67,7 @@ CPlugin::CPlugin(const char* _szName) : valid(false) m_Initialize != 0 && m_Shutdown != 0 && m_DoState != 0) - valid = true; + valid = true; // Save the filename for this plugin Filename = _szName; @@ -83,9 +83,9 @@ bool CPlugin::GetInfo(PLUGIN_INFO& _pluginInfo) { if (m_GetDllInfo != NULL) { m_GetDllInfo(&_pluginInfo); - return(true); + return true; } - return(false); + return false; } // Config: Open the Config window @@ -112,12 +112,8 @@ void CPlugin::DoState(unsigned char **ptr, int mode) { m_DoState(ptr, mode); } -// Run Initialize() in the plugin void CPlugin::Initialize(void *init) { - /* We first check that we have found the Initialize() function, but there - is no restriction on running this several times */ - // Uh, the above comment sounds extremely dubious. if (m_Initialize != NULL) m_Initialize(init); } |
