aboutsummaryrefslogtreecommitdiff
path: root/engines/sword1
diff options
context:
space:
mode:
authorMax Horn2006-02-18 11:15:37 +0000
committerMax Horn2006-02-18 11:15:37 +0000
commit8ac17430ac7aa3bba5630d74a1eeda54bce7801b (patch)
tree5c3a57c00428e599f43edde027ff3ff87475ceb9 /engines/sword1
parentd0e637f7aa5c23ef66a4a5685bba8aecd58e14a7 (diff)
downloadscummvm-rg350-8ac17430ac7aa3bba5630d74a1eeda54bce7801b.tar.gz
scummvm-rg350-8ac17430ac7aa3bba5630d74a1eeda54bce7801b.tar.bz2
scummvm-rg350-8ac17430ac7aa3bba5630d74a1eeda54bce7801b.zip
- renamed PLUGIN_getSupportedGames to PLUGIN_gameIDList for consistency
- renamed Engine_XXX_gameList to Engine_XXX_gameList for consistency - added new Engine_XXX_findGameID / PLUGIN_findGameID function - updated plugins code to take advantage of the new plugin API, to support obsolete gameids w/o showing them to the user svn-id: r20752
Diffstat (limited to 'engines/sword1')
-rw-r--r--engines/sword1/sword1.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/engines/sword1/sword1.cpp b/engines/sword1/sword1.cpp
index 689c4625c3..47b4a9e780 100644
--- a/engines/sword1/sword1.cpp
+++ b/engines/sword1/sword1.cpp
@@ -66,13 +66,22 @@ static const char *g_filesToCheck[NUM_FILES_TO_CHECK] = { // these files have to
// the engine needs several more files to work, but checking these should be sufficient
};
-GameList Engine_SWORD1_gameList() {
+GameList Engine_SWORD1_gameIDList() {
GameList games;
games.push_back(sword1FullSettings);
games.push_back(sword1DemoSettings);
return games;
}
+GameSettings Engine_SWORD1_findGameID(const char *gameid) {
+ if (0 == strcmp(gameid, sword1FullSettings.gameid))
+ return sword1FullSettings;
+ if (0 == strcmp(gameid, sword1DemoSettings.gameid))
+ return sword1DemoSettings;
+ GameSettings dummy = { 0, 0 };
+ return dummy;
+}
+
void Sword1CheckDirectory(const FSList &fslist, bool *filesFound) {
for (FSList::const_iterator file = fslist.begin(); file != fslist.end(); ++file) {
if (!file->isDirectory()) {