ENGINES: Make variable names of PlainGameDescriptor conform to our guidelines.
gameid -> gameId
This commit is contained in:
parent
3aecd8ef2a
commit
e515fc18db
5 changed files with 18 additions and 18 deletions
|
@ -41,8 +41,8 @@ static GameDescriptor toGameDescriptor(const ADGameDescription &g, const PlainGa
|
|||
title = g.extra;
|
||||
extra = "";
|
||||
} else {
|
||||
while (sg->gameid) {
|
||||
if (!scumm_stricmp(g.gameId, sg->gameid))
|
||||
while (sg->gameId) {
|
||||
if (!scumm_stricmp(g.gameId, sg->gameId))
|
||||
title = sg->description;
|
||||
sg++;
|
||||
}
|
||||
|
@ -589,9 +589,9 @@ GameList AdvancedMetaEngine::getSupportedGames() const {
|
|||
GameList gl;
|
||||
|
||||
const PlainGameDescriptor *g = _gameIds;
|
||||
while (g->gameid) {
|
||||
if (0 == scumm_stricmp(_singleId, g->gameid)) {
|
||||
gl.push_back(GameDescriptor(g->gameid, g->description));
|
||||
while (g->gameId) {
|
||||
if (0 == scumm_stricmp(_singleId, g->gameId)) {
|
||||
gl.push_back(GameDescriptor(g->gameId, g->description));
|
||||
|
||||
return gl;
|
||||
}
|
||||
|
|
|
@ -26,8 +26,8 @@
|
|||
|
||||
const PlainGameDescriptor *findPlainGameDescriptor(const char *gameid, const PlainGameDescriptor *list) {
|
||||
const PlainGameDescriptor *g = list;
|
||||
while (g->gameid) {
|
||||
if (0 == scumm_stricmp(gameid, g->gameid))
|
||||
while (g->gameId) {
|
||||
if (0 == scumm_stricmp(gameid, g->gameId))
|
||||
return g;
|
||||
g++;
|
||||
}
|
||||
|
@ -40,7 +40,7 @@ GameDescriptor::GameDescriptor() {
|
|||
}
|
||||
|
||||
GameDescriptor::GameDescriptor(const PlainGameDescriptor &pgd, Common::String guioptions) {
|
||||
setVal("gameid", pgd.gameid);
|
||||
setVal("gameid", pgd.gameId);
|
||||
setVal("description", pgd.description);
|
||||
|
||||
if (!guioptions.empty())
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
* consisting of PlainGameDescriptors.
|
||||
*/
|
||||
struct PlainGameDescriptor {
|
||||
const char *gameid;
|
||||
const char *gameId;
|
||||
const char *description;
|
||||
};
|
||||
|
||||
|
@ -108,7 +108,7 @@ public:
|
|||
GameList() {}
|
||||
GameList(const GameList &list) : Common::Array<GameDescriptor>(list) {}
|
||||
GameList(const PlainGameDescriptor *g) {
|
||||
while (g->gameid) {
|
||||
while (g->gameId) {
|
||||
push_back(GameDescriptor(*g));
|
||||
g++;
|
||||
}
|
||||
|
|
|
@ -136,7 +136,7 @@ const ExtraGuiOptions SkyMetaEngine::getExtraGuiOptions(const Common::String &ta
|
|||
}
|
||||
|
||||
GameDescriptor SkyMetaEngine::findGame(const char *gameid) const {
|
||||
if (0 == scumm_stricmp(gameid, skySetting.gameid))
|
||||
if (0 == scumm_stricmp(gameid, skySetting.gameId))
|
||||
return skySetting;
|
||||
return GameDescriptor();
|
||||
}
|
||||
|
@ -175,7 +175,7 @@ GameList SkyMetaEngine::detectGames(const Common::FSList &fslist) const {
|
|||
// Match found, add to list of candidates, then abort inner loop.
|
||||
// The game detector uses US English by default. We want British
|
||||
// English to match the recorded voices better.
|
||||
GameDescriptor dg(skySetting.gameid, skySetting.description, Common::UNK_LANG, Common::kPlatformUnknown);
|
||||
GameDescriptor dg(skySetting.gameId, skySetting.description, Common::UNK_LANG, Common::kPlatformUnknown);
|
||||
const SkyVersion *sv = skyVersions;
|
||||
while (sv->dinnerTableEntries) {
|
||||
if (dinnerTableEntries == sv->dinnerTableEntries &&
|
||||
|
|
|
@ -128,17 +128,17 @@ GameList SwordMetaEngine::getSupportedGames() const {
|
|||
}
|
||||
|
||||
GameDescriptor SwordMetaEngine::findGame(const char *gameid) const {
|
||||
if (0 == scumm_stricmp(gameid, sword1FullSettings.gameid))
|
||||
if (0 == scumm_stricmp(gameid, sword1FullSettings.gameId))
|
||||
return sword1FullSettings;
|
||||
if (0 == scumm_stricmp(gameid, sword1DemoSettings.gameid))
|
||||
if (0 == scumm_stricmp(gameid, sword1DemoSettings.gameId))
|
||||
return sword1DemoSettings;
|
||||
if (0 == scumm_stricmp(gameid, sword1MacFullSettings.gameid))
|
||||
if (0 == scumm_stricmp(gameid, sword1MacFullSettings.gameId))
|
||||
return sword1MacFullSettings;
|
||||
if (0 == scumm_stricmp(gameid, sword1MacDemoSettings.gameid))
|
||||
if (0 == scumm_stricmp(gameid, sword1MacDemoSettings.gameId))
|
||||
return sword1MacDemoSettings;
|
||||
if (0 == scumm_stricmp(gameid, sword1PSXSettings.gameid))
|
||||
if (0 == scumm_stricmp(gameid, sword1PSXSettings.gameId))
|
||||
return sword1PSXSettings;
|
||||
if (0 == scumm_stricmp(gameid, sword1PSXDemoSettings.gameid))
|
||||
if (0 == scumm_stricmp(gameid, sword1PSXDemoSettings.gameId))
|
||||
return sword1PSXDemoSettings;
|
||||
return GameDescriptor();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue