Remove degug printfs

This commit is contained in:
X7123M3-256 2016-02-26 22:41:55 +00:00
parent 0036575413
commit ba4681d624
1 changed files with 1 additions and 5 deletions

View File

@ -214,9 +214,6 @@ int write_object_file(SDL_RWops *rw, rct_object_entry* entry)
int calculated_checksum=object_calculate_checksum(entry,chunk,installed_entry->chunk_size);
if(entry->checksum!=calculated_checksum)
{
printf("Chunk size %d\n",chunkHeader.length);
printf("Fixing object with invalid checksum\n");
//Store the current length of the header - it's the offset at which we will write the extra bytes
int salt_offset=chunkHeader.length;
/*Allocate a new chunk 11 bytes longer.
@ -229,8 +226,6 @@ int write_object_file(SDL_RWops *rw, rct_object_entry* entry)
//It should be safe to update these in-place because they are local
chunkHeader.length+=11;
printf("New chunk size %d\n",chunkHeader.length);
/*Next work out which bits need to be flipped to make the current checksum match the one in the file
The bitwise rotation compensates for the rotation performed during the checksum calculation*/
int bits_to_flip=entry->checksum^((calculated_checksum<<25)|(calculated_checksum>>7));
@ -313,6 +308,7 @@ int object_load_packed(SDL_RWops* rw)
return 0;
}
int entryGroupIndex = 0;
for (; entryGroupIndex < object_entry_group_counts[type]; entryGroupIndex++){