aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);