KLEPTO.KLPacker: Functions Modinfo Source  

KLPacker

KLPacker Module for BMax


brsoftware.de.vu

Functions Summary

AddDirtoPack Adds a dir to the specified package.
AddFiletoPack Adds a file to the specified package.
BuildPackage Builds an previous created TKLPack.
CreatePackage Creates an empty Package.
GetDirList Returns the Directory List of a package.
GetFile Get a file from memory.
GetFileList Returns the FileList of a package.
LoadPackage Load an existing Package.
SaveFile Saves one File to specified Path.

Functions

Function AddDirtoPack(Package:TKLPAck , Path:String)
DescriptionAdds a dir to the specified package.
Informationadds a directory to the specified packages dirtree.
The Path should be the whole path eg: "gfx\aliens\animated"

Function AddFiletoPack(Package:TKLPack , Path:String, Packdir:String)
DescriptionAdds a file to the specified package.
InformationFiles could be any format.
The packdir specifies the directory within the Package.

Function BuildPackage(Package:TKLPack,Path:String)
DescriptionBuilds an previous created TKLPack.
InformationBuilds and saves the package at give ratio and name.

Function CreatePackage:TKLPack(_Name:String , _Level:Int = 9 , Password:String = "")
DescriptionCreates an empty Package.
InformationThis function creates an empty KLPack Type
with specified name and compression Level

Level Range 1 - 9
Password A simple String with at least 1 character.

Function GetDirList:TList(Package:TKLPack)
DescriptionReturns the Directory List of a package.
InformationGives back a Tlist with all available directorys in the String Format.

Function GetFile:TBankStream(Package:TKLPack , Filename:String)
DescriptionGet a file from memory.
InformationThis function returns a file from
from a previously loaded package directly from ram.
This means no unpacking to the users HD and so no resources
on the users PC.

Function GetFileList:TList(Package:TKLPack)
DescriptionReturns the FileList of a package.
InformationGives back a Tlist with all available Files in the TFile Format.

Function LoadPackage:TKLPack(Path:String,Password:String = "")
DescriptionLoad an existing Package.
InformationLoads an existing Package into Memory
with this you could access the files directly from ram or
save them later in directory.

Function SaveFile(Package:TKLPack , Name:String , Dir:String)
DescriptionSaves one File to specified Path.

Module Information

Version1.00
ModserverBlitzHelp
AuthorBenjamin ' Klepto2 ' Rössig
LicenseClosed Source
CopyrightBenjamin Rössig
History0.8 Release
HistoryOfficial Relase