aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorMarcus Comstedt2003-12-21 18:26:56 +0000
committerMarcus Comstedt2003-12-21 18:26:56 +0000
commit5b1783d15475d70c30dda81f517dc9762b0c0a33 (patch)
tree96a6d91d64cc2592c50b2ec842a7eaf9e0374550 /backends
parenta5eca2df040234e11421351524b305f671b9fdf7 (diff)
downloadscummvm-rg350-5b1783d15475d70c30dda81f517dc9762b0c0a33.tar.gz
scummvm-rg350-5b1783d15475d70c30dda81f517dc9762b0c0a33.tar.bz2
scummvm-rg350-5b1783d15475d70c30dda81f517dc9762b0c0a33.zip
Make sure plugins are loaded when the selector is running.
svn-id: r11832
Diffstat (limited to 'backends')
-rw-r--r--backends/dc/dcmain.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/backends/dc/dcmain.cpp b/backends/dc/dcmain.cpp
index da286c8d31..188cec7013 100644
--- a/backends/dc/dcmain.cpp
+++ b/backends/dc/dcmain.cpp
@@ -25,7 +25,9 @@
#include <common/stdafx.h>
#include <common/scummsys.h>
-#include "base/engine.h"
+#include <base/engine.h>
+#include <base/gameDetector.h>
+#include <base/plugins.h>
#include "dc.h"
#include "icon.h"
@@ -170,9 +172,13 @@ int main()
dc_init_hardware();
initSound();
+ PluginManager::instance().loadPlugins();
+
if(!selectGame(argv[2], argv[1], icon))
exit(0);
+ PluginManager::instance().unloadPlugins();
+
scumm_main(argc, argv);
exit(0);