diff --git a/rom-patcher-js/modules/RomPatcher.format.ips.js b/rom-patcher-js/modules/RomPatcher.format.ips.js index 1206131..a7a4e87 100644 --- a/rom-patcher-js/modules/RomPatcher.format.ips.js +++ b/rom-patcher-js/modules/RomPatcher.format.ips.js @@ -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');