aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordi Vilalta Prat2008-06-09 03:59:16 +0000
committerJordi Vilalta Prat2008-06-09 03:59:16 +0000
commit280a7c4c229c14984f97a8e27b1a681b4c2476bb (patch)
treeccf05ef08e678c9f5ae74a68b2970f0ed6399350
parent3308e6558bb984d480b3c52a8bca468368c1c6a6 (diff)
downloadscummvm-rg350-280a7c4c229c14984f97a8e27b1a681b4c2476bb.tar.gz
scummvm-rg350-280a7c4c229c14984f97a8e27b1a681b4c2476bb.tar.bz2
scummvm-rg350-280a7c4c229c14984f97a8e27b1a681b4c2476bb.zip
Show warnings when a plugin couldn't be loaded
svn-id: r32627
-rw-r--r--backends/plugins/dynamic-plugin.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/backends/plugins/dynamic-plugin.h b/backends/plugins/dynamic-plugin.h
index 4771f1c086..ec051c4ed7 100644
--- a/backends/plugins/dynamic-plugin.h
+++ b/backends/plugins/dynamic-plugin.h
@@ -46,6 +46,7 @@ public:
return false;
}
if (verFunc() != PLUGIN_VERSION) {
+ warning("Plugin uses a different API version (you have: '%d', needed is: '%d')", verFunc(), PLUGIN_VERSION);
unloadPlugin();
return false;
}
@@ -58,6 +59,7 @@ public:
}
_type = (PluginType)typeFunc();
if (_type >= PLUGIN_TYPE_MAX) {
+ warning("Plugin type unknown: %d", _type);
unloadPlugin();
return false;
}
@@ -69,6 +71,7 @@ public:
return false;
}
if (typeVerFunc() != pluginTypeVersions[_type]) {
+ warning("Plugin uses a different type API version (you have: '%d', needed is: '%d')", typeVerFunc(), pluginTypeVersions[_type]);
unloadPlugin();
return false;
}
@@ -83,6 +86,7 @@ public:
// Get the plugin object
_pluginObject = getObject();
if (!_pluginObject) {
+ warning("Couldn't get the plugin object");
unloadPlugin();
return false;
}