YPF: Difference between revisions

From Game Research Wiki
Jump to navigation Jump to search
Line 25: Line 25:
| 4Bytes|| Unknown1 ||
| 4Bytes|| Unknown1 ||
|-
|-
| 1Bytes|| Filename Length || Value protected
| 1Bytes|| Filename Length || XOR 0xFF, then table lookup.
|-
|-
| ?Bytes|| Filename || XOR 0xFF then XOR 0x40
| ?Bytes|| Filename || XOR 0xFF then XOR 0x40

Revision as of 05:20, 16 March 2015

Used in the following games:

  • Eroge! ~Sex and Games Make Sexy Games~

Structure

Header
Size Content Description
4Bytes Magic/ID "YPF/0"
4Bytes Unknown1 Static?
4Bytes File Count Number of Files in archive
4Bytes Index Size Size of Index
16Bytes Padding
Index Entry
Size Content Description
4Bytes Unknown1
1Bytes Filename Length XOR 0xFF, then table lookup.
?Bytes Filename XOR 0xFF then XOR 0x40
2Bytes Unknown2 Static?
4Bytes FileSize1
4Bytes FileSize2 Suggests compression is supported
4Bytes File Offset
4Bytes Unknown3

Comments

Index data may be protected.

XOR by FF then XOR by 40 may work.