From 5d5c02d66c680ef442f68138bae6a403e6bc3336 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 4 May 2006 23:24:09 +0000 Subject: Moved GameDetector::setTarget & findGame to the new namespace Base; moved their declaration to base/game.h, their implementation to base/main.cpp (both until we can come up with a better location). Also moved detectMain into main.cpp, where it now is a local static function svn-id: r22346 --- gui/launcher.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gui') diff --git a/gui/launcher.cpp b/gui/launcher.cpp index 73f74924a0..26d5e38bfd 100644 --- a/gui/launcher.cpp +++ b/gui/launcher.cpp @@ -24,7 +24,7 @@ #include "backends/fs/fs.h" #include "base/engine.h" -#include "base/gameDetector.h" +#include "base/game.h" #include "base/plugins.h" #include "base/version.h" @@ -538,7 +538,7 @@ void LauncherDialog::updateListing() { if (gameid.empty()) gameid = iter->_key; if (description.empty()) { - GameDescriptor g = GameDetector::findGame(gameid); + GameDescriptor g = Base::findGame(gameid); if (!g.description.empty()) description = g.description; } @@ -696,7 +696,7 @@ void LauncherDialog::editGame(int item) { String gameId(ConfMan.get("gameid", _domains[item])); if (gameId.empty()) gameId = _domains[item]; - EditGameDialog editDialog(_domains[item], GameDetector::findGame(gameId).description); + EditGameDialog editDialog(_domains[item], Base::findGame(gameId).description); if (editDialog.runModal() > 0) { // User pressed OK, so make changes permanent @@ -737,7 +737,7 @@ void LauncherDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 dat case kListItemDoubleClickedCmd: // Print out what was selected assert(item >= 0); - GameDetector::setTarget(_domains[item]); + Base::setTarget(_domains[item]); close(); break; case kListSelectionChangedCmd: -- cgit v1.2.3