diff options
author | Jordi Vilalta Prat | 2008-02-08 01:45:46 +0000 |
---|---|---|
committer | Jordi Vilalta Prat | 2008-02-08 01:45:46 +0000 |
commit | e3852c92a77fef402bb37863a8430f76275c38bf (patch) | |
tree | 1aef9b24d62eac246a4c2a1faa0d4c5070f7a74f /backends/plugins | |
parent | 00987db3a97f37439cfc6e70991a08fde424d2b3 (diff) | |
download | scummvm-rg350-e3852c92a77fef402bb37863a8430f76275c38bf.tar.gz scummvm-rg350-e3852c92a77fef402bb37863a8430f76275c38bf.tar.bz2 scummvm-rg350-e3852c92a77fef402bb37863a8430f76275c38bf.zip |
Remove undesired spaces and an old TODO
svn-id: r30827
Diffstat (limited to 'backends/plugins')
-rw-r--r-- | backends/plugins/dynamic-plugin.h | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/backends/plugins/dynamic-plugin.h b/backends/plugins/dynamic-plugin.h index 3825f28c87..4771f1c086 100644 --- a/backends/plugins/dynamic-plugin.h +++ b/backends/plugins/dynamic-plugin.h @@ -39,39 +39,39 @@ protected: public: virtual bool loadPlugin() { - // Validate the plugin API version - IntFunc verFunc = (IntFunc)findSymbol("PLUGIN_getVersion"); - if (!verFunc) { - unloadPlugin(); - return false; - } - if (verFunc() != PLUGIN_VERSION) { - unloadPlugin(); - return false; - } + // Validate the plugin API version + IntFunc verFunc = (IntFunc)findSymbol("PLUGIN_getVersion"); + if (!verFunc) { + unloadPlugin(); + return false; + } + if (verFunc() != PLUGIN_VERSION) { + unloadPlugin(); + return false; + } - // Get the type of the plugin - IntFunc typeFunc = (IntFunc)findSymbol("PLUGIN_getType"); - if (!typeFunc) { - unloadPlugin(); - return false; - } - _type = (PluginType)typeFunc(); - if (_type >= PLUGIN_TYPE_MAX) { - unloadPlugin(); - return false; - } + // Get the type of the plugin + IntFunc typeFunc = (IntFunc)findSymbol("PLUGIN_getType"); + if (!typeFunc) { + unloadPlugin(); + return false; + } + _type = (PluginType)typeFunc(); + if (_type >= PLUGIN_TYPE_MAX) { + unloadPlugin(); + return false; + } - // Validate the plugin type API version - IntFunc typeVerFunc = (IntFunc)findSymbol("PLUGIN_getTypeVersion"); - if (!typeVerFunc) { - unloadPlugin(); - return false; - } - if (typeVerFunc() != pluginTypeVersions[_type]) { - unloadPlugin(); - return false; - } + // Validate the plugin type API version + IntFunc typeVerFunc = (IntFunc)findSymbol("PLUGIN_getTypeVersion"); + if (!typeVerFunc) { + unloadPlugin(); + return false; + } + if (typeVerFunc() != pluginTypeVersions[_type]) { + unloadPlugin(); + return false; + } // Get the plugin's instantiator object GetObjectFunc getObject = (GetObjectFunc)findSymbol("PLUGIN_getObject"); |