1
0
Fork 0
mirror of https://github.com/marcrobledo/RomPatcher.js.git synced 2025-06-27 16:25:54 +00:00

removed unneeded code

This commit is contained in:
Marc Robledo 2023-03-31 19:59:21 +02:00
parent 1ea536ad27
commit 4ed1066771

View file

@ -28,15 +28,12 @@ APSGBA.prototype.validateSource=function(sourceFile){
if(sourceFile.fileSize!==this.sourceSize)
return false;
var originalEndianness=sourceFile.littleEndian;
sourceFile.littleEndian=true;
for(var i=0; i<this.records.length; i++){
sourceFile.seek(this.records[i].offset);
var bytes=sourceFile.readBytes(APS_GBA_BLOCK_SIZE);
if(crc16(sourceFile, this.records[i].offset, APS_GBA_BLOCK_SIZE) !== this.records[i].sourceCrc16)
return false
}
sourceFile.littleEndian=originalEndianness;
return true
}