Skip to main content

Function: updateSave()

updateSave(slot, changes): Promise<boolean>

Defined in: packages/core/src/saves/db.ts:183

Edit a save's annotations without recapturing the game state.

Parameters

slot

Slot of the save to edit

string | number

changes

SaveUpdate

Fields to write. Only the keys carrying a value are touched.

Returns

Promise<boolean>

Promise - Whether a save occupied that slot

Remarks

Unlike saveGame this leaves timestamp alone, so renaming a save does not move it to the top of a list ordered by recency.