"Inside Macintosh: Toolbox Essentials" says that, in vers resources the first two binary bytes are encoded in binary coded decimal or BCD. (Page 7-69)
For instance, resource_dasm output suggests that Dark Castle 1.1 is version 1.16 because the first two bytes of the vers resource are 0x01 0x10. 1.16 would be correct if taking the bytes were sufficient. However, each digit is encoded in a nibble rather than a byte. So there are 4 digits and the version number is 01.10 in hex aka 1.1 in decimal
"Inside Macintosh: Toolbox Essentials" says that, in
vers
resources the first two binary bytes are encoded in binary coded decimal or BCD. (Page 7-69)For instance, resource_dasm output suggests that Dark Castle 1.1 is version 1.16 because the first two bytes of the
vers
resource are0x01 0x10
. 1.16 would be correct if taking the bytes were sufficient. However, each digit is encoded in a nibble rather than a byte. So there are 4 digits and the version number is01.10
in hex aka1.1
in decimalhttps://github.com/fuzziqersoftware/resource_dasm/blob/1cd70f30b4970861ec6e1763da7376e2dd646c24/src/ResourceFile.cc#L1160