[Scummvm-cvs-logs] SF.net SVN: scummvm: [32627] scummvm/trunk/backends/plugins/dynamic-plugin. h
jvprat at users.sourceforge.net
jvprat at users.sourceforge.net
Mon Jun 9 05:59:16 CEST 2008
Revision: 32627
http://scummvm.svn.sourceforge.net/scummvm/?rev=32627&view=rev
Author: jvprat
Date: 2008-06-08 20:59:16 -0700 (Sun, 08 Jun 2008)
Log Message:
-----------
Show warnings when a plugin couldn't be loaded
Modified Paths:
--------------
scummvm/trunk/backends/plugins/dynamic-plugin.h
Modified: scummvm/trunk/backends/plugins/dynamic-plugin.h
===================================================================
--- scummvm/trunk/backends/plugins/dynamic-plugin.h 2008-06-09 03:20:53 UTC (rev 32626)
+++ scummvm/trunk/backends/plugins/dynamic-plugin.h 2008-06-09 03:59:16 UTC (rev 32627)
@@ -46,6 +46,7 @@
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 @@
}
_type = (PluginType)typeFunc();
if (_type >= PLUGIN_TYPE_MAX) {
+ warning("Plugin type unknown: %d", _type);
unloadPlugin();
return false;
}
@@ -69,6 +71,7 @@
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 @@
// Get the plugin object
_pluginObject = getObject();
if (!_pluginObject) {
+ warning("Couldn't get the plugin object");
unloadPlugin();
return false;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list