(svn r8093) -Codechange: Add a function to get a string representation of an MD5SUM and use it.

This commit is contained in:
Darkvater
2007-01-13 13:47:57 +00:00
parent f2e5e604fb
commit 5ed33e549e
4 changed files with 23 additions and 11 deletions

View File

@@ -205,12 +205,9 @@ bool IsGoodGRFConfigList(void)
const GRFConfig *f = FindGRFConfig(c->grfid, c->md5sum);
if (f == NULL) {
char buf[512], *p = buf;
uint i;
p += snprintf(p, lastof(buf) - p, "Couldn't find NewGRF %08X (%s) checksum ", BSWAP32(c->grfid), c->filename);
for (i = 0; i < lengthof(c->md5sum); i++) {
p += snprintf(p, lastof(buf) - p, "%02X", c->md5sum[i]);
}
md5sumToString(p, lastof(buf), c->md5sum);
ShowInfo(buf);
res = false;