文件打包系统

From KlayGE
Revision as of 03:43, 13 January 2012 by CynthiaGordon (Talk | contribs)

Jump to: navigation, search

KlayGE 3.6开始,打包系统使用了7zip作为打包格式。在使用打包系统之前,需要确保系统中有7zip的7z.dll。

使用

KlayGE打包系统可以统一地通过ResLoader来调用。命名规则是用“//”来区分压缩包路径和包内路径。如果压缩包有密码,则可以在它的 路径之后加上“|”和密码。例如,有一个folder/example.7z的压缩包,它的密码是abcd,包中有文件ex1/ex2 /test.cpp,那么它的全路径就是:

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

ResLoader通过这个路径就可以把该文件从压缩包中载入一个ResIdentifier中。

The process of essay writing will be much easier with MarvelousEssays.Com as there are a lot of highly professional and talented writers who are always eager to help you out with any sort of academic assignments regardless of the complexity levels. I do know what I�m talking about!