diff options
author | Filippos Karapetis | 2018-12-27 13:20:53 +0200 |
---|---|---|
committer | Filippos Karapetis | 2018-12-27 13:20:53 +0200 |
commit | b37a41286099faf4a36e73e69b377022345091e7 (patch) | |
tree | 7a6ddbf81c6e5a719854451698603ce726b7e87e /engines/glk/alan2/detection.h | |
parent | 0ade566d649fd9b1803276944d2cae77130aeca7 (diff) | |
download | scummvm-rg350-b37a41286099faf4a36e73e69b377022345091e7.tar.gz scummvm-rg350-b37a41286099faf4a36e73e69b377022345091e7.tar.bz2 scummvm-rg350-b37a41286099faf4a36e73e69b377022345091e7.zip |
GLK: ALAN2: Initial skeleton sub-engine
Diffstat (limited to 'engines/glk/alan2/detection.h')
-rw-r--r-- | engines/glk/alan2/detection.h | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/engines/glk/alan2/detection.h b/engines/glk/alan2/detection.h new file mode 100644 index 0000000000..b3fa3bd473 --- /dev/null +++ b/engines/glk/alan2/detection.h @@ -0,0 +1,77 @@ +/* ScummVM - Graphic Adventure Engine + * + * ScummVM is the legal property of its developers, whose names + * are too numerous to list here. Please refer to the COPYRIGHT + * file distributed with this source distribution. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + */ + +#ifndef GLK_ALAN2_DETECTION +#define GLK_ALAN2_DETECTION + +#include "common/fs.h" +#include "common/hash-str.h" +#include "engines/game.h" + +namespace Glk { +namespace Alan2 { + +/** + * Alan2 game descriptior + */ +struct Alan2Descriptor { + const char *gameId; + const char *description; + + operator PlainGameDescriptor() const { + PlainGameDescriptor pd; + pd.gameId = gameId; + pd.description = description; + return pd; + } +}; + +/** + * Meta engine for Alan2 interpreter + */ +class Alan2MetaEngine { +public: + /** + * Get a list of supported games + */ + static void getSupportedGames(PlainGameList &games); + + /** + * Returns a game description for the given game Id, if it's supported + */ + static Alan2Descriptor findGame(const char *gameId); + + /** + * Detect supported games + */ + static bool detectGames(const Common::FSList &fslist, DetectedGames &gameList); + + /** + * Check for game Id clashes with other sub-engines + */ + static void detectClashes(Common::StringMap &map); +}; + +} // End of namespace Alan2 +} // End of namespace Glk + +#endif |