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

fix: fix the glitch that cut the end of the file if it's larger than the changed file patch was originally created with

This commit is contained in:
laqieer 2022-03-15 21:16:53 +08:00
parent 3dd109c6d9
commit 98aa4f3580

View file

@ -64,7 +64,7 @@ UPS.prototype.apply=function(romFile, validate){
}
/* copy original file */
tempFile=new MarcFile(this.sizeOutput);
tempFile=new MarcFile(sizeOutput);
romFile.copyToFile(tempFile, 0, this.sizeInput);
romFile.seek(0);