disable checksum validation

This commit is contained in:
Ted John 2016-07-10 00:29:32 +01:00
parent 66eee6d89d
commit 853e002b4f
1 changed files with 5 additions and 9 deletions

View File

@ -195,15 +195,11 @@ public:
utf8 objectName[9]; utf8 objectName[9];
object_entry_get_name_fixed(objectName, sizeof(objectName), objectEntry); object_entry_get_name_fixed(objectName, sizeof(objectName), objectEntry);
int realChecksum = object_calculate_checksum(objectEntry, (const uint8 *)data, (int)dataSize); // Currently disable checksum validation
if (realChecksum != objectEntry->checksum) // int realChecksum = object_calculate_checksum(objectEntry, (const uint8 *)data, (int)dataSize);
{ // if (realChecksum != objectEntry->checksum)
log_error("Checksum mismatch from packed object: %.8s", objectName); // {
if (!gConfigGeneral.allow_loading_with_incorrect_checksum) // }
{
return;
}
}
// TODO append checksum match bytes // TODO append checksum match bytes