mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-24 15:09:10 +00:00
Codechange: make md5sumToString std::string compatible
This commit is contained in:
@@ -666,9 +666,7 @@ NetworkRecvStatus ClientNetworkGameSocketHandler::Receive_SERVER_CHECK_NEWGRFS(P
|
||||
const GRFConfig *f = FindGRFConfig(c.grfid, FGCM_EXACT, c.md5sum);
|
||||
if (f == nullptr) {
|
||||
/* We do not know this GRF, bail out of initialization */
|
||||
char buf[sizeof(c.md5sum) * 2 + 1];
|
||||
md5sumToString(buf, lastof(buf), c.md5sum);
|
||||
Debug(grf, 0, "NewGRF {:08X} not found; checksum {}", BSWAP32(c.grfid), buf);
|
||||
Debug(grf, 0, "NewGRF {:08X} not found; checksum {}", BSWAP32(c.grfid), MD5SumToString(c.md5sum));
|
||||
ret = NETWORK_RECV_STATUS_NEWGRF_MISMATCH;
|
||||
}
|
||||
}
|
||||
|
@@ -365,9 +365,7 @@ class NetworkContentListWindow : public Window, ContentCallback {
|
||||
if (!first) url.push_back(',');
|
||||
first = false;
|
||||
|
||||
char buf[33];
|
||||
md5sumToString(buf, lastof(buf), ci->md5sum);
|
||||
fmt::format_to(std::back_inserter(url), "{:08X}:{}", ci->unique_id, buf);
|
||||
fmt::format_to(std::back_inserter(url), "{:08X}:{}", ci->unique_id, MD5SumToString(ci->md5sum));
|
||||
}
|
||||
} else {
|
||||
url += "do=searchtext&q=";
|
||||
|
Reference in New Issue
Block a user