diff options
author | Max Horn | 2006-10-07 01:05:12 +0000 |
---|---|---|
committer | Max Horn | 2006-10-07 01:05:12 +0000 |
commit | df5be194098e188f9cd3234af2bea34b67d19da2 (patch) | |
tree | e9b797f971d73146f4f9e973168f4fe8bc79bb42 /backends/platform/sdl | |
parent | c8a21d19d164d40fc543d3a908789ee249a292fc (diff) | |
download | scummvm-rg350-df5be194098e188f9cd3234af2bea34b67d19da2.tar.gz scummvm-rg350-df5be194098e188f9cd3234af2bea34b67d19da2.tar.bz2 scummvm-rg350-df5be194098e188f9cd3234af2bea34b67d19da2.zip |
Instantiate and hook up the plugin providers in the main() function of the corresponding backends (porters may have to update their ports if they were using the POSIX or Win32 module loading code implicitly); some cleanup
svn-id: r24153
Diffstat (limited to 'backends/platform/sdl')
-rw-r--r-- | backends/platform/sdl/sdl.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/backends/platform/sdl/sdl.cpp b/backends/platform/sdl/sdl.cpp index 5f76d21c9d..21f5935c58 100644 --- a/backends/platform/sdl/sdl.cpp +++ b/backends/platform/sdl/sdl.cpp @@ -22,6 +22,7 @@ */ #include "backends/platform/sdl/sdl-common.h" +#include "backends/plugins/sdl/sdl-provider.h" #include "common/config-manager.h" #include "common/util.h" #include "base/main.h" @@ -95,6 +96,10 @@ int main(int argc, char *argv[]) { #endif assert(g_system); +#ifdef DYNAMIC_MODULES + PluginManager::instance().addPluginProvider(new SDLPluginProvider()); +#endif + // Invoke the actual ScummVM main entry point: int res = scummvm_main(argc, argv); g_system->quit(); // TODO: Consider removing / replacing this! |