Function _IrrAddZipFile

au3Irr2

au3Irr2 Function Reference

_IrrAddZipFile

Adds a zip archive to the filing system allowing to load files out of the zip file.

#Include <au3Irrlicht2.au3>
_IrrAddZipFile($s_Zipfile, $i_IgnoreCase, $i_IgnorePaths)

 

Parameters

$s_ZipFile Path to the zipfile (or pk3 file)
$i_IgnoreCase Should be one of the following values:
$IRR_USE_CASE
$IRR_IGNORE_CASE
$i_IgnorePaths Ignore paths allows you to simply use the filename without the path, the filename should always be unique in the archive when using this option. The value should be one of the following:
$IRR_USE_PATHS
$IRR_IGNORE_PATHS

 

Return Value

Success: True
Failure: False

 

Remarks

Files inside the .zip can be opened as if they were in the current working directory.
Common pk3 files are simply zip files.

 

Related

None.

 

Example


#include "au3Irrlicht2.au3"

_IrrStart()

_IrrAddZipFile( "./media/map-20kdm2.pk3", $IRR_IGNORE_CASE, $IRR_IGNORE_PATHS )
$BSPMesh = _IrrGetMesh( "20kdm2.bsp" )
local $BSPNode = _IrrAddMeshToSceneAsOcttree( $BSPMesh )

local $camera = _IrrAddFPSCamera()
_IrrSetNodePosition( $camera, 1750, 149, 1369 )

WHILE _IrrRunning()
    _IrrBeginScene(50, 50, 50)
    _IrrDrawScene()
    _IrrEndScene()
WEND

_IrrStop()