aboutsummaryrefslogtreecommitdiff
path: root/backends/dc
diff options
context:
space:
mode:
authorMax Horn2006-05-04 22:52:18 +0000
committerMax Horn2006-05-04 22:52:18 +0000
commit6321cfc874ee95b9b2471783a18f4173fb60ab78 (patch)
treed656ceb19a97ef038c61390e316aa6d50e63c6dc /backends/dc
parentc319e972467beb3b824af01bc707ea225c38572e (diff)
downloadscummvm-rg350-6321cfc874ee95b9b2471783a18f4173fb60ab78.tar.gz
scummvm-rg350-6321cfc874ee95b9b2471783a18f4173fb60ab78.tar.bz2
scummvm-rg350-6321cfc874ee95b9b2471783a18f4173fb60ab78.zip
Turned the last remaining few GameDetector methods into static methods
svn-id: r22344
Diffstat (limited to 'backends/dc')
-rw-r--r--backends/dc/DCLauncherDialog.h5
-rw-r--r--backends/dc/dcmain.cpp2
-rw-r--r--backends/dc/selector.cpp1
3 files changed, 2 insertions, 6 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"