Fix divide by zero in pck_packer

This commit is contained in:
Paulb23
2021-11-17 18:07:29 +00:00
parent e445bacd90
commit eb9100f085
4 changed files with 23 additions and 15 deletions

View File

@@ -43,8 +43,8 @@
<method name="pck_start">
<return type="int" enum="Error" />
<argument index="0" name="pck_name" type="String" />
<argument index="1" name="alignment" type="int" default="0" />
<argument index="2" name="key" type="String" default="&quot;&quot;" />
<argument index="1" name="alignment" type="int" default="32" />
<argument index="2" name="key" type="String" default="&quot;0000000000000000000000000000000000000000000000000000000000000000&quot;" />
<argument index="3" name="encrypt_directory" type="bool" default="false" />
<description>
Creates a new PCK file with the name [code]pck_name[/code]. The [code].pck[/code] file extension isn't added automatically, so it should be part of [code]pck_name[/code] (even though it's not required).