Z Configuration Format
Jump to navigation
Jump to search
OPTIONS.CFG stores Z settings. The repository parser identifies a 202-byte layout with version byte ASCII 2.
File format
| Offset | Data type | Name | Description |
|---|---|---|---|
| 0 | UINT8 | version | 0x32 (ASCII 2). |
| 1 | BYTE[172] | other settings | Preserved, not decoded by parseOptions. |
| 173 | INT32LE | gamma | Gamma level, clamped to 0–4 by gammaTable. |
| 177 | BYTE[19] | other settings | Preserve. |
| 196 | UINT8 | svga | SVGA on/off flag. |
| 197 | BYTE[5] | other settings | Preserve. |
Notes
This is a partial field description. The original reads the file field by field; changing its size or dropping unknown bytes can invalidate later settings.
Source code
From re-z, the open-source browser port:
- src/formats/options.js – size/version validation
- src/formats/palette.js – gamma interpretation
- docs/re/NOTES.md – reverse-engineering notes and evidence status
Credits
This file format was reverse engineered by VorticonCmdr. If you find this information helpful in a project you're working on, please give credit where credit is due. (A link back to this wiki would be nice too!)