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

@@ -320,7 +320,7 @@ static bool MakePNGImage(const char *name, ScreenshotCallback *callb, void *user
fmt::format_to(std::back_inserter(message), "Graphics set: {} ({})\n", BaseGraphics::GetUsedSet()->name, BaseGraphics::GetUsedSet()->version);
message += "NewGRFs:\n";
for (const GRFConfig *c = _game_mode == GM_MENU ? nullptr : _grfconfig; c != nullptr; c = c->next) {
fmt::format_to(std::back_inserter(message), "{:08X} {} {}\n", BSWAP32(c->ident.grfid), MD5SumToString(c->ident.md5sum), c->filename);
fmt::format_to(std::back_inserter(message), "{:08X} {} {}\n", BSWAP32(c->ident.grfid), FormatArrayAsHex(c->ident.md5sum), c->filename);
}
message += "\nCompanies:\n";
for (const Company *c : Company::Iterate()) {