Cleanup: remove MD5SumToString in lieu of FormatArrayAsHex

This commit is contained in:
Rubidium
2023-05-18 22:41:42 +02:00
committed by rubidium42
parent d9a04ba446
commit acec34a0fe
15 changed files with 15 additions and 29 deletions

View File

@@ -389,11 +389,11 @@ static void CDECL HandleSavegameLoadCrash(int signum)
if (HasBit(c->flags, GCF_COMPATIBLE)) {
const GRFIdentifier *replaced = _gamelog.GetOverriddenIdentifier(c);
fmt::format_to(std::back_inserter(message), "NewGRF {:08X} (checksum {}) not found.\n Loaded NewGRF \"{}\" (checksum {}) with same GRF ID instead.\n",
BSWAP32(c->ident.grfid), MD5SumToString(c->original_md5sum), c->filename, MD5SumToString(replaced->md5sum));
BSWAP32(c->ident.grfid), FormatArrayAsHex(c->original_md5sum), c->filename, FormatArrayAsHex(replaced->md5sum));
}
if (c->status == GCS_NOT_FOUND) {
fmt::format_to(std::back_inserter(message), "NewGRF {:08X} ({}) not found; checksum {}.\n",
BSWAP32(c->ident.grfid), c->filename, MD5SumToString(c->ident.md5sum));
BSWAP32(c->ident.grfid), c->filename, FormatArrayAsHex(c->ident.md5sum));
}
}
} else {