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/x11 | |
| 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/x11')
| -rw-r--r-- | backends/platform/x11/x11.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/backends/platform/x11/x11.cpp b/backends/platform/x11/x11.cpp index ce020c7a8e..7db5066c44 100644 --- a/backends/platform/x11/x11.cpp +++ b/backends/platform/x11/x11.cpp @@ -30,6 +30,7 @@ #include "base/main.h" #include "backends/intern.h" #include "backends/platform/x11/x11.h" +#include "backends/plugins/posix/posix-provider.h" #include <stdio.h> #include <assert.h> @@ -62,6 +63,10 @@ int main(int argc, char *argv[]) { g_system = OSystem_X11::create(0, 0); assert(g_system); +#ifdef DYNAMIC_MODULES + PluginManager::instance().addPluginProvider(new POSIXPluginProvider()); +#endif + // Invoke the actual ScummVM main entry point: int res = scummvm_main(argc, argv); g_system->quit(); // TODO: Consider removing / replacing this! |
