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:
parent
1ea536ad27
commit
4ed1066771
1 changed files with 0 additions and 3 deletions
|
@ -28,15 +28,12 @@ APSGBA.prototype.validateSource=function(sourceFile){
|
||||||
if(sourceFile.fileSize!==this.sourceSize)
|
if(sourceFile.fileSize!==this.sourceSize)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
var originalEndianness=sourceFile.littleEndian;
|
|
||||||
sourceFile.littleEndian=true;
|
|
||||||
for(var i=0; i<this.records.length; i++){
|
for(var i=0; i<this.records.length; i++){
|
||||||
sourceFile.seek(this.records[i].offset);
|
sourceFile.seek(this.records[i].offset);
|
||||||
var bytes=sourceFile.readBytes(APS_GBA_BLOCK_SIZE);
|
var bytes=sourceFile.readBytes(APS_GBA_BLOCK_SIZE);
|
||||||
if(crc16(sourceFile, this.records[i].offset, APS_GBA_BLOCK_SIZE) !== this.records[i].sourceCrc16)
|
if(crc16(sourceFile, this.records[i].offset, APS_GBA_BLOCK_SIZE) !== this.records[i].sourceCrc16)
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
sourceFile.littleEndian=originalEndianness;
|
|
||||||
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue