From df5be194098e188f9cd3234af2bea34b67d19da2 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 7 Oct 2006 01:05:12 +0000 Subject: 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 --- backends/platform/dc/dcmain.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'backends/platform/dc') diff --git a/backends/platform/dc/dcmain.cpp b/backends/platform/dc/dcmain.cpp index 4b03ec1551..4ba5338dfa 100644 --- a/backends/platform/dc/dcmain.cpp +++ b/backends/platform/dc/dcmain.cpp @@ -31,6 +31,8 @@ #include "DCLauncherDialog.h" #include +#include "backends/plugins/dc/dc-provider.h" + Icon icon; const char *gGameName; @@ -205,6 +207,10 @@ int main() g_system = new OSystem_Dreamcast(); assert(g_system); +#ifdef DYNAMIC_MODULES + PluginManager::instance().addPluginProvider(new DCPluginProvider()); +#endif + int res = scummvm_main(argc, argv); exit(0); -- cgit v1.2.3