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

adding command line support

This commit is contained in:
Jonathan Arndt 2023-06-29 11:29:54 -06:00
parent c87df560e9
commit faee7e6a43
18 changed files with 557 additions and 40 deletions

View file

@ -6,7 +6,6 @@
some code and ideas borrowed from:
https://hack64.net/jscripts/libpatch.js?6
*/
//const VCDIFF_MAGIC=0xd6c3c400;
const VCDIFF_MAGIC='\xd6\xc3\xc4';
/*
@ -17,7 +16,10 @@ const XDELTA_100_MAGIC='%XDZ002';
const XDELTA_104_MAGIC='%XDZ003';
const XDELTA_110_MAGIC='%XDZ004';
*/
if(typeof module !== "undefined" && module.exports){
module.exports = {VCDIFF_MAGIC, parseVCDIFF};
MarcFile = require("../MarcFile").MarcFile;
}
function VCDIFF(patchFile){
this.file=patchFile;