synced with scummvm to 2011-Apr-13

This commit is contained in:
Pawel Kolodziejski 2011-04-14 12:41:26 +02:00
parent f0a4299aef
commit 0640dcf2c7
347 changed files with 53648 additions and 8521 deletions

View file

@ -37,7 +37,12 @@ protected:
virtual VoidFunc findSymbol(const char *symbol) = 0;
const Common::String _filename;
public:
DynamicPlugin(const Common::String &filename) :
_filename(filename) {}
virtual bool loadPlugin() {
// Validate the plugin API version
IntFunc verFunc = (IntFunc)findSymbol("PLUGIN_getVersion");
@ -97,6 +102,10 @@ public:
virtual void unloadPlugin() {
delete _pluginObject;
}
virtual const char *getFileName() const {
return _filename.c_str();
}
};
#endif