Packing system

From KlayGE
Revision as of 06:55, 28 March 2011 by Gongminmin (Talk | contribs)

Jump to: navigation, search

From KlayGE 3.6, packing system employed 7zip as packing format. Before using it, make sure that 7z.dll from 7zip is in your system.

Usage

KlayGE’s packing system can be used unifiedly via ResLoader. The naming rules is seperate outside path and inside path by “//”. If a package has password, add “|” and the password after is outside path. For example, if there’s a package folder/example.7z, which has a password abcd. A file’s inside path is ex1/ex2/test.cpp, then it’s full path is:

folder/example.7z|abcd//ex1/ex2/test.cpp

though this path, ResLoader can load and decompress this file from the package to a ResIdentifier object.