mirror of
https://github.com/pagefaultgames/rogueserver.git
synced 2025-04-03 03:27:13 +08:00
Add game version check to save (WiP)
This commit is contained in:
parent
25abf4914b
commit
d232773ecd
@ -57,6 +57,10 @@ func Update(uuid []byte, slot int, save any) error {
|
|||||||
return fmt.Errorf("failed to serialize save: %s", err)
|
return fmt.Errorf("failed to serialize save: %s", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if save.GameVersion != "1.0.1" {
|
||||||
|
return fmt.Errorf("client version out of date")
|
||||||
|
}
|
||||||
|
|
||||||
db.DeleteClaimedAccountCompensations(uuid)
|
db.DeleteClaimedAccountCompensations(uuid)
|
||||||
case defs.SessionSaveData: // Session
|
case defs.SessionSaveData: // Session
|
||||||
if slot < 0 || slot >= defs.SessionSlotCount {
|
if slot < 0 || slot >= defs.SessionSlotCount {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user