PLUGINS: single plugin model now saves plugin filename to config file

After searching for the right plugin once, the filename will be saved to the config file under the domain 'plugin_files'. The key is the gameid and the value is the plugin file. The backup mechanism is searching plugin by plugin.

svn-id: r55061
This commit is contained in:
Yotam Barnoy 2010-12-29 15:25:21 +00:00
parent 77a6dc7046
commit 8f36a5f887
8 changed files with 135 additions and 27 deletions

View file

@ -36,7 +36,6 @@
class SDLPlugin : public DynamicPlugin {
protected:
void *_dlHandle;
Common::String _filename;
virtual VoidFunc findSymbol(const char *symbol) {
void *func = SDL_LoadFunction(_dlHandle, symbol);
@ -55,7 +54,7 @@ protected:
public:
SDLPlugin(const Common::String &filename)
: _dlHandle(0), _filename(filename) {}
: DynamicPlugin(filename), _dlHandle(0) {}
bool loadPlugin() {
assert(!_dlHandle);