p +=seprintf(p,lastof(buffer),"NewGRF %08X (checksum %s) not found.\n Loaded NewGRF \"%s\" (checksum %s) with same GRF ID instead.\n",BSWAP32(c->ident.grfid),original_md5,c->filename,replaced_md5);
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),original_md5,c->filename,replaced_md5);
}
if(c->status==GCS_NOT_FOUND){
charbuf[40];
md5sumToString(buf,lastof(buf),c->ident.md5sum);
p +=seprintf(p,lastof(buffer),"NewGRF %08X (%s) not found; checksum %s.\n",BSWAP32(c->ident.grfid),c->filename,buf);
fmt::format_to(std::back_inserter(message),"NewGRF {:08X} ({}) not found; checksum {}.\n",BSWAP32(c->ident.grfid),c->filename,buf);
}
}
}else{
p +=seprintf(p,lastof(buffer),
message +=
"This is probably caused by a corruption in the savegame.\n"
"Please file a bug report and attach this savegame.\n");
"Please file a bug report and attach this savegame.\n";