From 24398b5d50382871844e2ad61b6fe601be6b6fb0 Mon Sep 17 00:00:00 2001 From: Peter Ferrie Date: Tue, 28 May 2024 18:11:42 -0700 Subject: [PATCH] don't pad FX --- bin/buildfx.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bin/buildfx.js b/bin/buildfx.js index 066e9afa5..5e2171e06 100644 --- a/bin/buildfx.js +++ b/bin/buildfx.js @@ -41,9 +41,7 @@ for (i = 0; i < entries.length; i++) { groups += "!byte " + (1 + 1 + entries[i].length + 5).toString() + "\n" + "!byte " + entries[i].length.toString() + "\n" + "!text \"" + entries[i] + "\"\n" + "!be24 " + fx_off.toString() + "\n" size = a.getfile(WScript.Arguments(3) + "\\" + entries[i]).size - // if offset+size does not cross a block boundary, use the size - // otherwise adjust size until it ends at the next block boundary to avoid a partial copy on the last block - groups += "!le16 " + ((Math.floor(fx_off / 512) == Math.floor((fx_off + size) / 512)) ? size : (((fx_off + size + 511) & -512) - fx_off)).toString() + "\n" + groups += "!le16 " + size + "\n" fx_off += size }