Pathologic VFS

From XentaxWiki
Revision as of 12:01, 23 October 2006 by imported>13xforever
Jump to navigation Jump to search

Choose archive extension:

VFS


Format Specifications

Structure

Header
FAT
Data
[FAT #2 Header]
[FAT]
[Data]
...


Header

char {4}     - Header (LP1C)
uint32 {4}   - Number of subdirs
uint32 {4}   - Number of files

FAT

byte {1}     - Filename length
char {X}     - Filename
uint32 {4}   - File Length
uint32 {4}   - File Offset
uint64 {8}   - UID?

Data

byte {X}     - File data

FAT #2 Header

byte {1}     - Next Directory Name length (w/o trailing '/')
uint32 {4}   - UID?
uint32 {4}   - Number of files in that subdir

MultiEx BMS

Not written yet


Supported Programs

DAT

  • Format Type : String encoding
  • Endian Order : Little Endian


Format Specifications

Structure

uint32 {4}   - Number of records (may be multi-lines, separated by 0x0A)
byte {X}     - Records

Record

uint32 {4}   - UID
byte {X}     - Length
byte {2Y}     - String record of Length 2-byte Unicode characters

NOTE:

each byte store 7 bits of Length, from LS to MS;
the end of the Length field is marked with MSb == 0; i.e.:
0x12 = 0.0010010 = 0010010 = record of 18 characters
0xBC 0x02 = 1.0111100 0.0000010 = 00000100111100 = record of 316 chars

MultiEx BMS

Not written yet


Supported Programs