diff options
author | Max Horn | 2006-02-18 11:15:37 +0000 |
---|---|---|
committer | Max Horn | 2006-02-18 11:15:37 +0000 |
commit | 8ac17430ac7aa3bba5630d74a1eeda54bce7801b (patch) | |
tree | 5c3a57c00428e599f43edde027ff3ff87475ceb9 /engines/saga/saga.cpp | |
parent | d0e637f7aa5c23ef66a4a5685bba8aecd58e14a7 (diff) | |
download | scummvm-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/saga/saga.cpp')
-rw-r--r-- | engines/saga/saga.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/engines/saga/saga.cpp b/engines/saga/saga.cpp index 45c12f616d..4222b93b08 100644 --- a/engines/saga/saga.cpp +++ b/engines/saga/saga.cpp @@ -62,7 +62,7 @@ static const GameSettings saga_games[] = { {0, 0} }; -GameList Engine_SAGA_gameList() { +GameList Engine_SAGA_gameIDList() { GameList games; const GameSettings *g = saga_games; @@ -74,6 +74,16 @@ GameList Engine_SAGA_gameList() { return games; } +GameSettings Engine_SAGA_findGameID(const char *gameid) { + const GameSettings *g = saga_games; + while (g->gameid) { + if (0 == strcmp(gameid, g->gameid)) + break; + g++; + } + return *g; +} + DetectedGameList Engine_SAGA_detectGames(const FSList &fslist) { return Saga::GAME_ProbeGame(fslist); } |