aboutsummaryrefslogtreecommitdiff
path: root/sword2
diff options
context:
space:
mode:
authorMax Horn2006-01-21 13:01:20 +0000
committerMax Horn2006-01-21 13:01:20 +0000
commit0b39c0ea9fbc43569a17f65db6fe6a89f29ccee1 (patch)
treec1b6170cbc006981a22b36c4b02f10bda699c542 /sword2
parente34d963027194654259c4ce3499780671f36e133 (diff)
downloadscummvm-rg350-0b39c0ea9fbc43569a17f65db6fe6a89f29ccee1.tar.gz
scummvm-rg350-0b39c0ea9fbc43569a17f65db6fe6a89f29ccee1.tar.bz2
scummvm-rg350-0b39c0ea9fbc43569a17f65db6fe6a89f29ccee1.zip
Fix various incorrect usages of the word 'target' instead of 'gameid'; change the ambigiuous 'GameSettings::name' to 'GameSettings::gameid'
svn-id: r20115
Diffstat (limited to 'sword2')
-rw-r--r--sword2/sword2.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/sword2/sword2.cpp b/sword2/sword2.cpp
index faf0915664..926a90e91e 100644
--- a/sword2/sword2.cpp
+++ b/sword2/sword2.cpp
@@ -46,12 +46,12 @@ extern bool isSmartphone();
#endif
struct Sword2GameSettings {
- const char *name;
+ const char *gameid;
const char *description;
uint32 features;
const char *detectname;
GameSettings toGameSettings() const {
- GameSettings dummy = { name, description, features };
+ GameSettings dummy = { gameid, description, features };
return dummy;
}
};
@@ -67,7 +67,7 @@ static const Sword2GameSettings sword2_settings[] = {
GameList Engine_SWORD2_gameList() {
const Sword2GameSettings *g = sword2_settings;
GameList games;
- while (g->name) {
+ while (g->gameid) {
games.push_back(g->toGameSettings());
g++;
}
@@ -82,7 +82,7 @@ DetectedGameList Engine_SWORD2_detectGames(const FSList &fslist) {
// between the 'sword2' and 'sword2demo' targets. The current code
// can't do that since they use the same detectname.
- for (g = sword2_settings; g->name; ++g) {
+ for (g = sword2_settings; g->gameid; ++g) {
// Iterate over all files in the given directory
for (FSList::const_iterator file = fslist.begin(); file != fslist.end(); ++file) {
if (!file->isDirectory()) {