aboutsummaryrefslogtreecommitdiff
path: root/backends/plugins
diff options
context:
space:
mode:
authorAndre Heider2010-09-06 22:17:23 +0000
committerAndre Heider2010-09-06 22:17:23 +0000
commitd3ea6265bac8c0bf4947e6bc6f7bf248799cc966 (patch)
tree865f8b62c6ce057fe57dd8c97d1fb72afb99f26f /backends/plugins
parentae408db07f05407c41ed4831e4e23991574588d6 (diff)
downloadscummvm-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.h3
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();