mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-03 07:11:49 +00:00
AGI/COMMON: Fixed bug #3407308 - "AGI: SQ2: Saving allowed in autosave slot 0 from scummvmmenu"
The save/load dialog code was not polling for meta info for empty slots
This commit is contained in:
parent
d50b519653
commit
d01d228ee8
@ -306,9 +306,11 @@ SaveStateDescriptor AgiMetaEngine::querySaveMetaInfos(const char *target, int sl
|
||||
delete in;
|
||||
|
||||
return desc;
|
||||
} else {
|
||||
SaveStateDescriptor emptySave(slot, "");
|
||||
emptySave.setWriteProtectedFlag(slot == 0);
|
||||
return emptySave;
|
||||
}
|
||||
|
||||
return SaveStateDescriptor();
|
||||
}
|
||||
|
||||
const ADGameDescription *AgiMetaEngine::fallbackDetect(const FileMap &allFilesXXX, const Common::FSList &fslist) const {
|
||||
|
@ -240,7 +240,7 @@ void SaveLoadChooser::updateSelection(bool redraw) {
|
||||
_time->setLabel(_("No time saved"));
|
||||
_playtime->setLabel(_("No playtime saved"));
|
||||
|
||||
if (selItem >= 0 && !_list->getSelectedString().empty() && _metaInfoSupport) {
|
||||
if (selItem >= 0 && _metaInfoSupport) {
|
||||
SaveStateDescriptor desc = (*_plugin)->querySaveMetaInfos(_target.c_str(), _saveList[selItem].getSaveSlot());
|
||||
|
||||
isDeletable = desc.getDeletableFlag() && _delSupport;
|
||||
|
Loading…
x
Reference in New Issue
Block a user