notes:misc:detecting_megazeux_files
Differences
This shows you the differences between two versions of the page.
| notes:misc:detecting_megazeux_files [2022/10/19 15:42] – created asie | notes:misc:detecting_megazeux_files [2022/10/20 16:02] (current) – asie | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| * The file extension is always `MZX` (world file), | * The file extension is always `MZX` (world file), | ||
| * If byte 25 is zero, the bytes 26-28 (magic) are either `MZX`, `MZ2`, `MZA`, or `M\x02?`, where ? is any byte; | * If byte 25 is zero, the bytes 26-28 (magic) are either `MZX`, `MZ2`, `MZA`, or `M\x02?`, where ? is any byte; | ||
| - | * If byte 25 is non-zero, the bytes 26-28 (magic) are either `MZX`, `MZ2`, `MZA`, or `M\x02?`, where ? is any byte; | + | * If byte 25 is non-zero, the bytes 41-43 (magic) are either `MZX`, `MZ2`, `MZA`, or `M\x02?`, where ? is any byte; |
| Bytes 0-24 can then be used to parse the world title (codepage 437, null-terminated). | Bytes 0-24 can then be used to parse the world title (codepage 437, null-terminated). | ||
notes/misc/detecting_megazeux_files.1666194135.txt.gz · Last modified: by asie
