if(container_ver==0)usererror("Base grf '%s' is corrupt",filename);
if(container_ver==0)usererror("Base grf '%s' is corrupt",filename.c_str());
ReadGRFSpriteOffsets(file);
if(container_ver>=2){
/* Read compression. */
@ -137,7 +137,7 @@ void CheckExternalFiles()
add_pos+=seprintf(add_pos,last,"Trying to load graphics set '%s', but it is incomplete. The game will probably not run correctly until you properly install this set or select another one. See section 4.1 of README.md.\n\nThe following files are corrupted or missing:\n",used_set->name.c_str());
if(res!=MD5File::CR_MATCH)add_pos+=seprintf(add_pos,last,"\t%s is %s (%s)\n",used_set->files[i].filename, res==MD5File::CR_MISMATCH?"corrupt":"missing",used_set->files[i].missing_warning);
if(res!=MD5File::CR_MATCH)add_pos+=seprintf(add_pos,last,"\t%s is %s (%s)\n",used_set->files[i].filename.c_str(), res==MD5File::CR_MISMATCH?"corrupt":"missing",used_set->files[i].missing_warning.c_str());
}
add_pos+=seprintf(add_pos,last,"\n");
}
@ -149,7 +149,7 @@ void CheckExternalFiles()
static_assert(SoundsSet::NUM_FILES==1);
/* No need to loop each file, as long as there is only a single
*soundfile.*/
add_pos+=seprintf(add_pos,last,"\t%s is %s (%s)\n",sounds_set->files->filename, SoundsSet::CheckMD5(sounds_set->files,BASESET_DIR)==MD5File::CR_MISMATCH?"corrupt":"missing",sounds_set->files->missing_warning);
add_pos+=seprintf(add_pos,last,"\t%s is %s (%s)\n",sounds_set->files->filename.c_str(), SoundsSet::CheckMD5(sounds_set->files,BASESET_DIR)==MD5File::CR_MISMATCH?"corrupt":"missing",sounds_set->files->missing_warning.c_str());