diff options
author | Andre Heider | 2010-09-06 22:17:23 +0000 |
---|---|---|
committer | Andre Heider | 2010-09-06 22:17:23 +0000 |
commit | d3ea6265bac8c0bf4947e6bc6f7bf248799cc966 (patch) | |
tree | 865f8b62c6ce057fe57dd8c97d1fb72afb99f26f /backends/plugins | |
parent | ae408db07f05407c41ed4831e4e23991574588d6 (diff) | |
download | scummvm-rg350-d3ea6265bac8c0bf4947e6bc6f7bf248799cc966.tar.gz scummvm-rg350-d3ea6265bac8c0bf4947e6bc6f7bf248799cc966.tar.bz2 scummvm-rg350-d3ea6265bac8c0bf4947e6bc6f7bf248799cc966.zip |
PLUGINS: Formatting.
svn-id: r52611
Diffstat (limited to 'backends/plugins')
-rw-r--r-- | backends/plugins/dynamic-plugin.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/backends/plugins/dynamic-plugin.h b/backends/plugins/dynamic-plugin.h index 970ac3531d..0c6a797947 100644 --- a/backends/plugins/dynamic-plugin.h +++ b/backends/plugins/dynamic-plugin.h @@ -44,6 +44,7 @@ public: unloadPlugin(); return false; } + if (verFunc() != PLUGIN_VERSION) { warning("Plugin uses a different API version (you have: '%d', needed is: '%d')", verFunc(), PLUGIN_VERSION); unloadPlugin(); @@ -56,6 +57,7 @@ public: unloadPlugin(); return false; } + _type = (PluginType)typeFunc(); if (_type >= PLUGIN_TYPE_MAX) { warning("Plugin type unknown: %d", _type); @@ -69,6 +71,7 @@ public: unloadPlugin(); return false; } + if (typeVerFunc() != pluginTypeVersions[_type]) { warning("Plugin uses a different type API version (you have: '%d', needed is: '%d')", typeVerFunc(), pluginTypeVersions[_type]); unloadPlugin(); |