The "xzip_count" Function
#
SyntaxArgument | Type | Description |
---|---|---|
arch | string | The full path and filename of the archive to check |
#
DescriptionReturns the number of files in the given archive created with xzip_create
. An empty archive will return 0
, or -1
if it doesn't exist at all.
#
ExampleThis will create a new archive and only add contents to it if it is empty. This technique can be used to prevent repeatedly adding archive contents in Step events, which are run every frame, for example.