rotators / foclassic

FOnline Community Edition (r412 base)
https://rotators.fodev.net/foclassic/
GNU General Public License v3.0
42 stars 5 forks source link

Introduce generic signature for blob files #3

Closed wipe2238 closed 5 years ago

wipe2238 commented 5 years ago

Basically, making a feature out of #1 requirements.

blob_signature[6] = prefix (2 bytes), type (1 byte), version (2 bytes), suffix (1 byte)

Prefix

We claim FO as prefix, currently used for clientsave, simply because it's best looking one.

Type

Defines what kind of blob we're dealing with.

Version

Simple uint16 with version number. Using uint is simply overkill.

Suffix

0x00

wipe2238 commented 5 years ago

Implemented. Cache has been left in original state, as it collides with further plans.