Creatures-Developer-Network / prayer

prayer, a <WIP> Python Library for handling PRAY files
MIT License
2 stars 0 forks source link

Find out whether the name field in block header is actually a c-string #9

Open pushfoo opened 4 years ago

pushfoo commented 4 years ago

This is likely a low priority edgecase.

The wording of the wiki is ambiguous as to whether the last byte of the name field in a PRAY block header must be a null:

Null-terminated string containing the name of the block, such as a filename. The remaining space is padded with zeros.

Allowing the last byte to be non-null would be more in line with CL's repeated pattern of using known length or length prefixed strings. A custom PRAY files should be tested against the engine to check.