diff options
Diffstat (limited to 'backends')
-rw-r--r-- | backends/dc/DCLauncherDialog.h | 5 | ||||
-rw-r--r-- | backends/dc/dcmain.cpp | 2 | ||||
-rw-r--r-- | backends/dc/selector.cpp | 1 | ||||
-rw-r--r-- | backends/morphos/morphos_start.cpp | 1 | ||||
-rw-r--r-- | backends/wince/CELauncherDialog.cpp | 2 | ||||
-rw-r--r-- | backends/wince/CELauncherDialog.h | 3 |
6 files changed, 4 insertions, 10 deletions
diff --git a/backends/dc/DCLauncherDialog.h b/backends/dc/DCLauncherDialog.h index aa35ff90fe..7dffcaa576 100644 --- a/backends/dc/DCLauncherDialog.h +++ b/backends/dc/DCLauncherDialog.h @@ -22,11 +22,8 @@ */ class DCLauncherDialog { - private: - GameDetector &_detector; - public: - DCLauncherDialog(GameDetector &d) : _detector(d) {} + DCLauncherDialog() {} int runModal(); }; diff --git a/backends/dc/dcmain.cpp b/backends/dc/dcmain.cpp index 1d82deb46d..67081533b3 100644 --- a/backends/dc/dcmain.cpp +++ b/backends/dc/dcmain.cpp @@ -224,7 +224,7 @@ int DCLauncherDialog::runModal() ConfMan.set("path", dir, base); // Set the target. - _detector.setTarget(base); + GameDetector::setTarget(base); return 0; } diff --git a/backends/dc/selector.cpp b/backends/dc/selector.cpp index bd9086431d..ade5cb9fc4 100644 --- a/backends/dc/selector.cpp +++ b/backends/dc/selector.cpp @@ -24,7 +24,6 @@ #include <common/stdafx.h> #include <common/scummsys.h> #include <base/engine.h> -#include <base/gameDetector.h> #include <base/plugins.h> #include <backends/fs/fs.h> #include "dc.h" diff --git a/backends/morphos/morphos_start.cpp b/backends/morphos/morphos_start.cpp index 82c57be7bc..ac5c16ad85 100644 --- a/backends/morphos/morphos_start.cpp +++ b/backends/morphos/morphos_start.cpp @@ -36,7 +36,6 @@ #include "common/stdafx.h" #include "scumm/scumm.h" -#include "base/gameDetector.h" #include "base/main.h" #include "common/scaler.h" #include "sound/mididrv.h" diff --git a/backends/wince/CELauncherDialog.cpp b/backends/wince/CELauncherDialog.cpp index 90675fb3da..243b5e5ea3 100644 --- a/backends/wince/CELauncherDialog.cpp +++ b/backends/wince/CELauncherDialog.cpp @@ -72,7 +72,7 @@ public: }; -CELauncherDialog::CELauncherDialog(GameDetector &detector) : GUI::LauncherDialog(detector) { +CELauncherDialog::CELauncherDialog() : GUI::LauncherDialog() { } void CELauncherDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 data) { diff --git a/backends/wince/CELauncherDialog.h b/backends/wince/CELauncherDialog.h index f612b53b97..7cb54a3f56 100644 --- a/backends/wince/CELauncherDialog.h +++ b/backends/wince/CELauncherDialog.h @@ -25,14 +25,13 @@ #include "backends/fs/fs.h" -#include "base/gameDetector.h" #include "base/plugins.h" #include "gui/launcher.h" class CELauncherDialog : public GUI::LauncherDialog { public: - CELauncherDialog(GameDetector &detector); + CELauncherDialog(); virtual void handleCommand(GUI::CommandSender *sender, uint32 cmd, uint32 data); protected: void addGame(); |