Skip to content

Instantly share code, notes, and snippets.

View robinlahtinen's full-sized avatar
📚
Studying

Robin robinlahtinen

📚
Studying
  • Finland
  • 21:29 (UTC +03:00)
View GitHub Profile
@mtolly
mtolly / vra.hs
Last active August 1, 2018 16:28
Extract game files from Vagante. UPDATE: See https://github.com/mtolly/vagante-extract for new version
{- |
Extracts and injects files from the game Vagante's data.vra.
The format (after a 0x18-byte-long header) is a simple repeating pattern:
- length of filename (4 bytes little-endian)
- filename
- length of file data (4 bytes little-endian)
- file data
The files themselves are all nice standard formats:
OGG, WAV, PNG, JSON, TTF, and OpenGL fragment shader.
-}