Example #1
0
/**
 * Returns list of targets supported by the engine.
 * Distinguishes engines with single ID
 */
static GameList gameIDList(const ADParams &params) {
    if (params.singleid != NULL) {
        GameList gl;

        const PlainGameDescriptor *g = params.list;
        while (g->gameid) {
            if (0 == scumm_stricmp(params.singleid, g->gameid)) {
                gl.push_back(GameDescriptor(g->gameid, g->description));

                return gl;
            }
            g++;
        }
        error("Engine %s doesn't have its singleid specified in ids list", params.singleid);
    }

    return GameList(params.list);
}
Example #2
0
GameList AdvancedMetaEngine::getSupportedGames() const {
	if (_singleId != NULL) {
		GameList gl;

		const PlainGameDescriptor *g = _gameIds;
		while (g->gameId) {
			if (0 == scumm_stricmp(_singleId, g->gameId)) {
				gl.push_back(GameDescriptor(g->gameId, g->description));

				return gl;
			}
			g++;
		}
		error("Engine %s doesn't have its singleid specified in ids list", _singleId);
	}

	return GameList(_gameIds);
}