Protofall / Crayon-Savefile

A savefile system designed to take up little space and support version control. Works on PC and Dreamcast
BSD 3-Clause "New" or "Revised" License
3 stars 0 forks source link

Savefile: Better size checks #2

Open Protofall opened 4 years ago

Protofall commented 4 years ago

ATM it works fine for savefiles that only ever have the same number of Blocks/Bytes, but if I were to have an older version savefile thats 2 blocks and the new one is 4 blocks, but we only have 1 spare block, then saving is impossible (2 + 1 < 4).

Also PC has no size checks at all, it just always assumes there is space. See how easy this is to fix.

Protofall commented 4 years ago

Also did some work on it in 6a7dd09

Protofall commented 4 years ago

This hasn't been fully tested. Reopening