MOHAWK: Allow non-autosaves in autosave slot to be deletable
With the addition of autosaving support, deleting saves (via the gui) to slot 0 was disabled, but for saves that have been previousl created by the user it make sense that they should be allowed to delete a save in slot 0. Fixes Trac#10536.
This commit is contained in:
parent
0500096703
commit
6041e4aca1
2 changed files with 4 additions and 2 deletions
|
@ -142,7 +142,8 @@ SaveStateDescriptor RivenSaveLoad::querySaveMetaInfos(const int slot) {
|
|||
descriptor.setPlayTime(metadata.totalPlayTime);
|
||||
descriptor.setSaveDate(metadata.saveYear, metadata.saveMonth, metadata.saveDay);
|
||||
descriptor.setSaveTime(metadata.saveHour, metadata.saveMinute);
|
||||
descriptor.setDeletableFlag(slot != kAutoSaveSlot);
|
||||
if (metadata.autoSave) // Allow non-saves to be deleted, but not autosaves
|
||||
descriptor.setDeletableFlag(slot != kAutoSaveSlot);
|
||||
|
||||
delete metaStream;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue