Skip to content

Instantly share code, notes, and snippets.

@Midi12
Created October 31, 2022 20:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Midi12/3cb1f38ceee7cf064eeeb1d4f89339bf to your computer and use it in GitHub Desktop.
Save Midi12/3cb1f38ceee7cf064eeeb1d4f89339bf to your computer and use it in GitHub Desktop.
RSI Manifest file description
meta:
id: rsi_manifest
title: Roberts Space Industries Launcher Manifest file
application: RSI Launcher v1.2.1.0
file-extension:
- manifest
encoding: ascii
endian: le
types:
header:
seq:
- id: magic
contents: [ 0x50, 0x34, 0x4B, 0x2D, 0x4D, 0x41, 0x4E, 0x49 ]
- id: unknown08
type: u4
- id: unknown0c
type: u4
- id: header_size
type: u8
- id: first_record_offset
type: u8
- id: num_records
type: u8
index_record:
seq:
- id: id
type: s4
- id: unknown_value_0
type: u4
- id: unknown_value_1
type: u4
- id: sha256
size: 32
- id: compression_method # 100 -> unknown_size_0 != unknown_size_1, 0 -> unknown_size_0 == unknown_size_1
type: u8
- id: compressed_size
type: u8
- id: uncompressed_size
type: u8
- id: crc32
type: u4
- id: signature
size: 128
- id: unknown_value_2
type: u4
string_node:
seq:
- id: index
type: s4
- id: length
type: u2
- id: unknown_06
type: u2
- id: child_offset
type: s4
- id: next_offset
type: s4
- id: data
type: str
encoding: ascii
size: length
instances:
child:
type: string_node
pos: child_offset
io: _io
if: child_offset != -1
next:
type: string_node
pos: next_offset
io: _io
if: next_offset != -1
string_nodes:
seq:
- id: root
type: string_node
seq:
- id: header
type: header
- id: string_nodes
type: string_nodes
size: header.first_record_offset
- id: index_records
type: index_record
repeat: expr
repeat-expr: header.num_records
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment