aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMax Horn2006-01-21 13:01:20 +0000
committerMax Horn2006-01-21 13:01:20 +0000
commit0b39c0ea9fbc43569a17f65db6fe6a89f29ccee1 (patch)
treec1b6170cbc006981a22b36c4b02f10bda699c542 /tools
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 'tools')
-rw-r--r--tools/md5table.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/md5table.c b/tools/md5table.c
index 9efc6e21eb..7fbb355eaa 100644
--- a/tools/md5table.c
+++ b/tools/md5table.c
@@ -60,7 +60,7 @@ typedef struct {
const char *platform;
const char *language;
const char *md5;
- const char *target;
+ const char *gameid;
const char *infoSource;
} Entry;
@@ -127,7 +127,7 @@ static const char *c_header =
"\n"
"struct MD5Table {\n"
" const char *md5;\n"
- " const char *target;\n"
+ " const char *gameid;\n"
" Common::Language language;\n"
" Common::Platform platform;\n"
"};\n"
@@ -147,7 +147,7 @@ static void parseEntry(Entry *entry, char *line) {
entry->platform = strtok(NULL, "\t\n\r");
entry->language = strtok(NULL, "\t\n\r");
entry->md5 = strtok(NULL, "\t\n\r");
- entry->target = strtok(NULL, "\t\n\r");
+ entry->gameid = strtok(NULL, "\t\n\r");
entry->infoSource = strtok(NULL, "\t\n\r");
}
@@ -236,7 +236,7 @@ int main(int argc, char *argv[])
fprintf(outFile, "\"%s\", ", entry.platform);
fprintf(outFile, "\"%s\", ", entry.language);
fprintf(outFile, "\"%s\", ", entry.md5);
- fprintf(outFile, "\"%s\"", entry.target);
+ fprintf(outFile, "\"%s\"", entry.gameid);
if (entry.infoSource)
fprintf(outFile, ", \"%s\"", entry.infoSource);
fprintf(outFile, "); ?>\n");
@@ -246,7 +246,7 @@ int main(int argc, char *argv[])
entriesBuffer = realloc(entriesBuffer, maxEntries * entrySize);
}
snprintf(entriesBuffer + numEntries * entrySize, entrySize, "\t{ \"%s\", \"%s\", Common::%s, Common::%s },\n",
- entry.md5, entry.target, mapStr(entry.language, langMap), mapStr(entry.platform, platformMap));
+ entry.md5, entry.gameid, mapStr(entry.language, langMap), mapStr(entry.platform, platformMap));
numEntries++;
}
} else {