aboutsummaryrefslogtreecommitdiff
path: root/engines/advancedDetector.h
diff options
context:
space:
mode:
authorMax Horn2011-06-14 15:25:33 +0200
committerMax Horn2011-06-14 18:52:07 +0200
commit593b929047434eefa9b6dfb73730f7d502c4ff10 (patch)
tree84fcfdd28ec336bf00f2969ff545e5a686ebd98d /engines/advancedDetector.h
parent6412d091268d299f7f4d31382b0e4e9e4e352ad9 (diff)
downloadscummvm-rg350-593b929047434eefa9b6dfb73730f7d502c4ff10.tar.gz
scummvm-rg350-593b929047434eefa9b6dfb73730f7d502c4ff10.tar.bz2
scummvm-rg350-593b929047434eefa9b6dfb73730f7d502c4ff10.zip
DETECTOR: Separate code for handling obsolete gameids from advanced detector
This includes a renaming of ADObsoleteGameID to Engine::ObsoleteGameID, and AdvancedDetector::findGameID now is Engines::findGameID. Doxygen comments were added or improved
Diffstat (limited to 'engines/advancedDetector.h')
-rw-r--r--engines/advancedDetector.h35
1 files changed, 3 insertions, 32 deletions
diff --git a/engines/advancedDetector.h b/engines/advancedDetector.h
index 8eb215ef18..5f7bfa401c 100644
--- a/engines/advancedDetector.h
+++ b/engines/advancedDetector.h
@@ -19,6 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
+
#ifndef ENGINES_ADVANCED_DETECTOR_H
#define ENGINES_ADVANCED_DETECTOR_H
@@ -73,7 +74,7 @@ struct ADGameDescription {
/**
* A list of pointers to ADGameDescription structs (or subclasses thereof).
*/
-typedef Common::Array<const ADGameDescription*> ADGameDescList;
+typedef Common::Array<const ADGameDescription *> ADGameDescList;
/**
* End marker for a table of ADGameDescription structs. Use this to
@@ -82,13 +83,6 @@ typedef Common::Array<const ADGameDescription*> ADGameDescList;
#define AD_TABLE_END_MARKER \
{ NULL, NULL, { { NULL, 0, NULL, 0 } }, Common::UNK_LANG, Common::kPlatformUnknown, ADGF_NO_FLAGS, Common::GUIO_NONE }
-
-struct ADObsoleteGameID {
- const char *from;
- const char *to;
- Common::Platform platform;
-};
-
struct ADFileBasedFallback {
/**
* Pointer to an ADGameDescription or subclass thereof which will get
@@ -119,21 +113,6 @@ enum ADFlags {
};
-namespace AdvancedDetector {
-
-/**
- * Scan through the game descriptors specified in params and search for
- * 'gameid' in there. If a match is found, returns a GameDescriptor
- * with gameid and description set.
- */
-GameDescriptor findGameID(
- const char *gameid,
- const PlainGameDescriptor *gameids,
- const ADObsoleteGameID *obsoleteList = 0
- );
-
-} // End of namespace AdvancedDetector
-
/**
* A MetaEngine implementation based around the advanced detector code.
*/
@@ -170,13 +149,6 @@ protected:
const PlainGameDescriptor *_gameids;
/**
- * Structure for autoupgrading obsolete targets (optional).
- *
- * @todo Properly explain this.
- */
- const ADObsoleteGameID *_obsoleteList;
-
- /**
* Name of single gameid (optional).
*
* @todo Properly explain this -- what does it do?
@@ -274,8 +246,7 @@ protected:
*/
ADGameDescList detectGameFilebased(const FileMap &allFiles) const;
- void upgradeTargetIfNecessary() const;
-
+ // TODO
void updateGameDescriptor(GameDescriptor &desc, const ADGameDescription *realDesc) const;
/**