From 9b26668e7f4168a8b9ea1b8af2657f9b89cdea59 Mon Sep 17 00:00:00 2001 From: Marc Robledo Date: Wed, 30 Apr 2025 09:36:50 +0200 Subject: [PATCH] fix: EBP creation --- rom-patcher-js/modules/RomPatcher.format.ips.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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');