diff options
| author | Jordi Vilalta Prat | 2008-06-09 03:59:16 +0000 |
|---|---|---|
| committer | Jordi Vilalta Prat | 2008-06-09 03:59:16 +0000 |
| commit | 280a7c4c229c14984f97a8e27b1a681b4c2476bb (patch) | |
| tree | ccf05ef08e678c9f5ae74a68b2970f0ed6399350 /backends/plugins | |
| parent | 3308e6558bb984d480b3c52a8bca468368c1c6a6 (diff) | |
| download | scummvm-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
Diffstat (limited to 'backends/plugins')
| -rw-r--r-- | backends/plugins/dynamic-plugin.h | 4 |
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; } |
