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

fix: EBP creation

This commit is contained in:
Marc Robledo 2025-04-30 09:36:50 +02:00
parent bd43cffc10
commit 9b26668e7f

View file

@ -83,7 +83,7 @@ IPS.prototype.export=function(fileName){
if(this.truncate && !this.EBPmetadata)
patchFileSize+=3; //truncate
else if(this.EBPmetadata)
patchFileSize+=JSON.stringify(this.EBPmetadata);
patchFileSize+=JSON.stringify(this.EBPmetadata).length;
tempFile=new BinFile(patchFileSize);
tempFile.fileName=fileName+(this.EBPmetadata? '.ebp' : '.ips');