diff options
author | Max Horn | 2003-09-20 00:37:09 +0000 |
---|---|---|
committer | Max Horn | 2003-09-20 00:37:09 +0000 |
commit | 3afbb22ad7ceac7a35256d34c6f1746230098d52 (patch) | |
tree | ec226cc448a7fbab056bb96160d983496f6c079e /base/plugins.cpp | |
parent | 7840039156b1ec23e92cfb64f4abd857761b5f97 (diff) | |
download | scummvm-rg350-3afbb22ad7ceac7a35256d34c6f1746230098d52.tar.gz scummvm-rg350-3afbb22ad7ceac7a35256d34c6f1746230098d52.tar.bz2 scummvm-rg350-3afbb22ad7ceac7a35256d34c6f1746230098d52.zip |
fix invalid target crash for build using loadable modules
svn-id: r10325
Diffstat (limited to 'base/plugins.cpp')
-rw-r--r-- | base/plugins.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/base/plugins.cpp b/base/plugins.cpp index e963913a5a..6b70b77393 100644 --- a/base/plugins.cpp +++ b/base/plugins.cpp @@ -243,6 +243,18 @@ void PluginManager::loadPlugins() { #else // Load dynamic plugins // TODO... this is right now just a nasty hack. + // This should search one or multiple directories for all plugins it can + // find (to this end, we maybe should use a special prefix/suffix; e.g. + // instead of libscumm.so, use scumm.engine or scumm.plugin etc.). + // + // The list of directories to search could be e.g.: + // User specified (via config file), ".", "./plugins", "$(prefix)/lib". + // + // We also need to add code which ensures what we are looking at is + // a) a ScummVM engine and b) matches the version of the executable. + // Hence one more symbol should be exported by plugins which returns + // the "ABI" version the plugin was built for, and we can compare that + // to the ABI version of the executable. #ifndef DISABLE_SCUMM tryLoadPlugin(new DynamicPlugin("scumm/libscumm.so")); #endif |