mirror of
https://github.com/marcrobledo/RomPatcher.js.git
synced 2025-06-27 16:25:54 +00:00
hotfix (bps): fixed bps creation checksums
This commit is contained in:
parent
1b7521feeb
commit
4a928085fc
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* BPS module for Rom Patcher JS v20240721 - Marc Robledo 2016-2024 - http://www.marcrobledo.com/license */
|
/* BPS module for Rom Patcher JS v20240821 - Marc Robledo 2016-2024 - http://www.marcrobledo.com/license */
|
||||||
/* File format specification: https://www.romhacking.net/documents/746/ */
|
/* File format specification: https://www.romhacking.net/documents/746/ */
|
||||||
|
|
||||||
const BPS_MAGIC='BPS1';
|
const BPS_MAGIC='BPS1';
|
||||||
|
@ -238,9 +238,9 @@ BPS.buildFromRoms=function(original, modified, deltaMode){
|
||||||
patch.actions=createBPSFromFilesLinear(original, modified);
|
patch.actions=createBPSFromFilesLinear(original, modified);
|
||||||
}
|
}
|
||||||
|
|
||||||
var patchFile=patch.export();
|
|
||||||
patch.sourceChecksum=original.hashCRC32();
|
patch.sourceChecksum=original.hashCRC32();
|
||||||
patch.targetChecksum=modified.hashCRC32();
|
patch.targetChecksum=modified.hashCRC32();
|
||||||
|
var patchFile=patch.export();
|
||||||
patch.patchChecksum=patchFile.hashCRC32(0, patchFile.fileSize - 4);
|
patch.patchChecksum=patchFile.hashCRC32(0, patchFile.fileSize - 4);
|
||||||
return patch;
|
return patch;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue