mirror of
https://github.com/a2-4am/4cade.git
synced 2024-11-26 01:49:25 +00:00
don't pad FX
This commit is contained in:
parent
c8f924dc6e
commit
24398b5d50
@ -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"
|
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
|
size = a.getfile(WScript.Arguments(3) + "\\" + entries[i]).size
|
||||||
// if offset+size does not cross a block boundary, use the size
|
groups += "!le16 " + size + "\n"
|
||||||
// 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"
|
|
||||||
fx_off += size
|
fx_off += size
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user