Lua VFS: Difference between revisions
From Spring
Jump to navigationJump to search
m →Modes |
m →Modes |
||
| Line 1: | Line 1: | ||
== Modes == | == Modes == | ||
'''VFS.RAW''' | '''VFS.RAW'''<br> | ||
'''VFS.MOD''' | '''VFS.MOD'''<br> | ||
'''VFS.MAP''' | '''VFS.MAP'''<br> | ||
'''VFS.BASE''' | '''VFS.BASE'''<br> | ||
'''VFS.ZIP''' | '''VFS.ZIP'''<br> | ||
'''VFS.RAW_FIRST''' | '''VFS.RAW_FIRST'''<br> | ||
'''VFS.ZIP_FIRST'' | '''VFS.ZIP_FIRST''<br> | ||
'''VFS.RAW_ONLY''' | '''VFS.RAW_ONLY'''<br> | ||
'''VFS.ZIP_ONLY''' | '''VFS.ZIP_ONLY''' | ||
== Files == | == Files == | ||
Revision as of 03:40, 29 September 2007
Modes
VFS.RAW
VFS.MOD
VFS.MAP
VFS.BASE
VFS.ZIP
VFS.RAW_FIRST
'VFS.ZIP_FIRST
VFS.RAW_ONLY
VFS.ZIP_ONLY
Files
VFS.Include
( string "filename" [, table enviroment [, number mode ] ] ) ->
VFS.LoadFile
( string "filename" [, number mode ] ) -> nil | lstring data
VFS.FileExists
( string "filename" [, number mode ] ) -> boolean
VFS.DirList
( string "directory" [, string "pattern" [, number mode [, string "optstr" ] ] ] )
-> { [1] = string filename, ... }
optstr can contain:
"r" = recursive
"d" = include dirs
Packing
VFS.PackU8
VFS.PackU16
VFS.PackU32
VFS.PackS8
VFS.PackS16
VFS.PackS32
VFS.PackF32
VFS.UnpackU8
VFS.UnpackU16
VFS.UnpackU32
VFS.UnpackS8
VFS.UnpackS16
VFS.UnpackS32
VFS.UnpackF32