aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
Diffstat (limited to 'gui')
-rw-r--r--gui/launcher.cpp6
-rw-r--r--gui/launcher.h5
2 files changed, 4 insertions, 7 deletions
diff --git a/gui/launcher.cpp b/gui/launcher.cpp
index 86e8ad926b..73f74924a0 100644
--- a/gui/launcher.cpp
+++ b/gui/launcher.cpp
@@ -434,8 +434,8 @@ void EditGameDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 dat
#pragma mark -
-LauncherDialog::LauncherDialog(GameDetector &detector)
- : Dialog(0, 0, 320, 200), _detector(detector) {
+LauncherDialog::LauncherDialog()
+ : Dialog(0, 0, 320, 200) {
_drawingHints |= THEME_HINT_MAIN_DIALOG;
const int screenW = g_system->getOverlayWidth();
@@ -737,7 +737,7 @@ void LauncherDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 dat
case kListItemDoubleClickedCmd:
// Print out what was selected
assert(item >= 0);
- _detector.setTarget(_domains[item]);
+ GameDetector::setTarget(_domains[item]);
close();
break;
case kListSelectionChangedCmd:
diff --git a/gui/launcher.h b/gui/launcher.h
index b5320937c4..7b456a2dbd 100644
--- a/gui/launcher.h
+++ b/gui/launcher.h
@@ -25,8 +25,6 @@
#include "gui/dialog.h"
#include "common/str.h"
-class GameDetector;
-
namespace GUI {
class BrowserDialog;
@@ -37,7 +35,7 @@ class LauncherDialog : public Dialog {
typedef Common::String String;
typedef Common::StringList StringList;
public:
- LauncherDialog(GameDetector &detector);
+ LauncherDialog();
~LauncherDialog();
virtual void handleCommand(CommandSender *sender, uint32 cmd, uint32 data);
@@ -51,7 +49,6 @@ protected:
GraphicsWidget *_logo;
#endif
StringList _domains;
- GameDetector &_detector;
BrowserDialog *_browser;
virtual void handleScreenChanged();