ALL: Make simpleSaveNames() a MetaEngineFeature
Added it into hasFeature() of all engines which returned `true` in simpleSaveNames() before. As mentioned in #788, SCI is not always using simple names, so it doesn't have such feature now.
This commit is contained in:
parent
b8fae56c67
commit
b665fc933d
53 changed files with 68 additions and 186 deletions
|
@ -100,7 +100,6 @@ public:
|
||||||
virtual bool hasFeature(MetaEngineFeature f) const;
|
virtual bool hasFeature(MetaEngineFeature f) const;
|
||||||
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
||||||
virtual SaveStateList listSaves(const char *target) const;
|
virtual SaveStateList listSaves(const char *target) const;
|
||||||
virtual bool simpleSaveNames() const;
|
|
||||||
virtual int getMaximumSaveSlot() const;
|
virtual int getMaximumSaveSlot() const;
|
||||||
virtual void removeSaveState(const char *target, int slot) const;
|
virtual void removeSaveState(const char *target, int slot) const;
|
||||||
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
||||||
|
@ -112,7 +111,8 @@ bool AccessMetaEngine::hasFeature(MetaEngineFeature f) const {
|
||||||
(f == kSupportsLoadingDuringStartup) ||
|
(f == kSupportsLoadingDuringStartup) ||
|
||||||
(f == kSupportsDeleteSave) ||
|
(f == kSupportsDeleteSave) ||
|
||||||
(f == kSavesSupportMetaInfo) ||
|
(f == kSavesSupportMetaInfo) ||
|
||||||
(f == kSavesSupportThumbnail);
|
(f == kSavesSupportThumbnail) ||
|
||||||
|
(f == kSimpleSavesNames);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Access::AccessEngine::hasFeature(EngineFeature f) const {
|
bool Access::AccessEngine::hasFeature(EngineFeature f) const {
|
||||||
|
@ -172,8 +172,6 @@ SaveStateList AccessMetaEngine::listSaves(const char *target) const {
|
||||||
return saveList;
|
return saveList;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool AccessMetaEngine::simpleSaveNames() const { return true; }
|
|
||||||
|
|
||||||
int AccessMetaEngine::getMaximumSaveSlot() const {
|
int AccessMetaEngine::getMaximumSaveSlot() const {
|
||||||
return MAX_SAVES;
|
return MAX_SAVES;
|
||||||
}
|
}
|
||||||
|
|
|
@ -175,7 +175,6 @@ public:
|
||||||
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
||||||
int getMaximumSaveSlot() const { return 'O' - 'A'; }
|
int getMaximumSaveSlot() const { return 'O' - 'A'; }
|
||||||
SaveStateList listSaves(const char *target) const;
|
SaveStateList listSaves(const char *target) const;
|
||||||
virtual bool simpleSaveNames() const;
|
|
||||||
void removeSaveState(const char *target, int slot) const;
|
void removeSaveState(const char *target, int slot) const;
|
||||||
|
|
||||||
bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *gd) const;
|
bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *gd) const;
|
||||||
|
@ -190,6 +189,7 @@ bool AdlMetaEngine::hasFeature(MetaEngineFeature f) const {
|
||||||
case kSavesSupportThumbnail:
|
case kSavesSupportThumbnail:
|
||||||
case kSavesSupportCreationDate:
|
case kSavesSupportCreationDate:
|
||||||
case kSavesSupportPlayTime:
|
case kSavesSupportPlayTime:
|
||||||
|
case kSimpleSavesNames:
|
||||||
return true;
|
return true;
|
||||||
default:
|
default:
|
||||||
return false;
|
return false;
|
||||||
|
@ -290,8 +290,6 @@ SaveStateList AdlMetaEngine::listSaves(const char *target) const {
|
||||||
return saveList;
|
return saveList;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool AdlMetaEngine::simpleSaveNames() const { return true; }
|
|
||||||
|
|
||||||
void AdlMetaEngine::removeSaveState(const char *target, int slot) const {
|
void AdlMetaEngine::removeSaveState(const char *target, int slot) const {
|
||||||
Common::String fileName = Common::String::format("%s.s%02d", target, slot);
|
Common::String fileName = Common::String::format("%s.s%02d", target, slot);
|
||||||
g_system->getSavefileManager()->removeSavefile(fileName);
|
g_system->getSavefileManager()->removeSavefile(fileName);
|
||||||
|
|
|
@ -216,7 +216,6 @@ public:
|
||||||
virtual bool hasFeature(MetaEngineFeature f) const;
|
virtual bool hasFeature(MetaEngineFeature f) const;
|
||||||
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
||||||
virtual SaveStateList listSaves(const char *target) const;
|
virtual SaveStateList listSaves(const char *target) const;
|
||||||
virtual bool simpleSaveNames() const;
|
|
||||||
virtual int getMaximumSaveSlot() const;
|
virtual int getMaximumSaveSlot() const;
|
||||||
virtual void removeSaveState(const char *target, int slot) const;
|
virtual void removeSaveState(const char *target, int slot) const;
|
||||||
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
||||||
|
@ -232,7 +231,8 @@ bool AgiMetaEngine::hasFeature(MetaEngineFeature f) const {
|
||||||
(f == kSavesSupportMetaInfo) ||
|
(f == kSavesSupportMetaInfo) ||
|
||||||
(f == kSavesSupportThumbnail) ||
|
(f == kSavesSupportThumbnail) ||
|
||||||
(f == kSavesSupportCreationDate) ||
|
(f == kSavesSupportCreationDate) ||
|
||||||
(f == kSavesSupportPlayTime);
|
(f == kSavesSupportPlayTime) ||
|
||||||
|
(f == kSimpleSavesNames);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool AgiBase::hasFeature(EngineFeature f) const {
|
bool AgiBase::hasFeature(EngineFeature f) const {
|
||||||
|
@ -324,8 +324,6 @@ SaveStateList AgiMetaEngine::listSaves(const char *target) const {
|
||||||
return saveList;
|
return saveList;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool AgiMetaEngine::simpleSaveNames() const { return true; }
|
|
||||||
|
|
||||||
int AgiMetaEngine::getMaximumSaveSlot() const { return 999; }
|
int AgiMetaEngine::getMaximumSaveSlot() const { return 999; }
|
||||||
|
|
||||||
void AgiMetaEngine::removeSaveState(const char *target, int slot) const {
|
void AgiMetaEngine::removeSaveState(const char *target, int slot) const {
|
||||||
|
|
|
@ -120,13 +120,13 @@ public:
|
||||||
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
||||||
|
|
||||||
virtual SaveStateList listSaves(const char *target) const;
|
virtual SaveStateList listSaves(const char *target) const;
|
||||||
virtual bool simpleSaveNames() const;
|
|
||||||
virtual int getMaximumSaveSlot() const;
|
virtual int getMaximumSaveSlot() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
bool AgosMetaEngine::hasFeature(MetaEngineFeature f) const {
|
bool AgosMetaEngine::hasFeature(MetaEngineFeature f) const {
|
||||||
return
|
return
|
||||||
(f == kSupportsListSaves);
|
(f == kSupportsListSaves) ||
|
||||||
|
(f == kSimpleSavesNames);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool AGOS::AGOSEngine::hasFeature(EngineFeature f) const {
|
bool AGOS::AGOSEngine::hasFeature(EngineFeature f) const {
|
||||||
|
@ -208,8 +208,6 @@ SaveStateList AgosMetaEngine::listSaves(const char *target) const {
|
||||||
return saveList;
|
return saveList;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool AgosMetaEngine::simpleSaveNames() const { return true; }
|
|
||||||
|
|
||||||
int AgosMetaEngine::getMaximumSaveSlot() const { return 999; }
|
int AgosMetaEngine::getMaximumSaveSlot() const { return 999; }
|
||||||
|
|
||||||
#if PLUGIN_ENABLED_DYNAMIC(AGOS)
|
#if PLUGIN_ENABLED_DYNAMIC(AGOS)
|
||||||
|
|
|
@ -83,7 +83,6 @@ public:
|
||||||
|
|
||||||
int getMaximumSaveSlot() const { return 99; }
|
int getMaximumSaveSlot() const { return 99; }
|
||||||
SaveStateList listSaves(const char *target) const;
|
SaveStateList listSaves(const char *target) const;
|
||||||
virtual bool simpleSaveNames() const;
|
|
||||||
void removeSaveState(const char *target, int slot) const;
|
void removeSaveState(const char *target, int slot) const;
|
||||||
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
||||||
};
|
};
|
||||||
|
@ -100,7 +99,8 @@ bool AvalancheMetaEngine::hasFeature(MetaEngineFeature f) const {
|
||||||
(f == kSupportsDeleteSave) ||
|
(f == kSupportsDeleteSave) ||
|
||||||
(f == kSupportsLoadingDuringStartup) ||
|
(f == kSupportsLoadingDuringStartup) ||
|
||||||
(f == kSavesSupportMetaInfo) ||
|
(f == kSavesSupportMetaInfo) ||
|
||||||
(f == kSavesSupportThumbnail);
|
(f == kSavesSupportThumbnail) ||
|
||||||
|
(f == kSimpleSavesNames);
|
||||||
}
|
}
|
||||||
|
|
||||||
SaveStateList AvalancheMetaEngine::listSaves(const char *target) const {
|
SaveStateList AvalancheMetaEngine::listSaves(const char *target) const {
|
||||||
|
@ -157,8 +157,6 @@ SaveStateList AvalancheMetaEngine::listSaves(const char *target) const {
|
||||||
return saveList;
|
return saveList;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool AvalancheMetaEngine::simpleSaveNames() const { return true; }
|
|
||||||
|
|
||||||
void AvalancheMetaEngine::removeSaveState(const char *target, int slot) const {
|
void AvalancheMetaEngine::removeSaveState(const char *target, int slot) const {
|
||||||
Common::String fileName = Common::String::format("%s.%03d", target, slot);
|
Common::String fileName = Common::String::format("%s.%03d", target, slot);
|
||||||
g_system->getSavefileManager()->removeSavefile(fileName);
|
g_system->getSavefileManager()->removeSavefile(fileName);
|
||||||
|
|
|
@ -86,7 +86,6 @@ public:
|
||||||
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
||||||
virtual int getMaximumSaveSlot() const;
|
virtual int getMaximumSaveSlot() const;
|
||||||
virtual SaveStateList listSaves(const char *target) const;
|
virtual SaveStateList listSaves(const char *target) const;
|
||||||
virtual bool simpleSaveNames() const;
|
|
||||||
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
||||||
virtual void removeSaveState(const char *target, int slot) const;
|
virtual void removeSaveState(const char *target, int slot) const;
|
||||||
};
|
};
|
||||||
|
@ -98,7 +97,8 @@ bool BbvsMetaEngine::hasFeature(MetaEngineFeature f) const {
|
||||||
(f == kSupportsLoadingDuringStartup) ||
|
(f == kSupportsLoadingDuringStartup) ||
|
||||||
(f == kSavesSupportMetaInfo) ||
|
(f == kSavesSupportMetaInfo) ||
|
||||||
(f == kSavesSupportThumbnail) ||
|
(f == kSavesSupportThumbnail) ||
|
||||||
(f == kSavesSupportCreationDate);
|
(f == kSavesSupportCreationDate) ||
|
||||||
|
(f == kSimpleSavesNames);
|
||||||
}
|
}
|
||||||
|
|
||||||
void BbvsMetaEngine::removeSaveState(const char *target, int slot) const {
|
void BbvsMetaEngine::removeSaveState(const char *target, int slot) const {
|
||||||
|
@ -136,8 +136,6 @@ SaveStateList BbvsMetaEngine::listSaves(const char *target) const {
|
||||||
return saveList;
|
return saveList;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool BbvsMetaEngine::simpleSaveNames() const { return true; }
|
|
||||||
|
|
||||||
SaveStateDescriptor BbvsMetaEngine::querySaveMetaInfos(const char *target, int slot) const {
|
SaveStateDescriptor BbvsMetaEngine::querySaveMetaInfos(const char *target, int slot) const {
|
||||||
Common::String filename = Bbvs::BbvsEngine::getSavegameFilename(target, slot);
|
Common::String filename = Bbvs::BbvsEngine::getSavegameFilename(target, slot);
|
||||||
Common::InSaveFile *in = g_system->getSavefileManager()->openForLoading(filename.c_str());
|
Common::InSaveFile *in = g_system->getSavefileManager()->openForLoading(filename.c_str());
|
||||||
|
|
|
@ -131,7 +131,6 @@ public:
|
||||||
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
||||||
virtual int getMaximumSaveSlot() const;
|
virtual int getMaximumSaveSlot() const;
|
||||||
virtual SaveStateList listSaves(const char *target) const;
|
virtual SaveStateList listSaves(const char *target) const;
|
||||||
virtual bool simpleSaveNames() const;
|
|
||||||
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
||||||
virtual void removeSaveState(const char *target, int slot) const;
|
virtual void removeSaveState(const char *target, int slot) const;
|
||||||
};
|
};
|
||||||
|
@ -181,7 +180,8 @@ bool CGEMetaEngine::hasFeature(MetaEngineFeature f) const {
|
||||||
(f == kSupportsDeleteSave) ||
|
(f == kSupportsDeleteSave) ||
|
||||||
(f == kSavesSupportMetaInfo) ||
|
(f == kSavesSupportMetaInfo) ||
|
||||||
(f == kSavesSupportThumbnail) ||
|
(f == kSavesSupportThumbnail) ||
|
||||||
(f == kSavesSupportCreationDate);
|
(f == kSavesSupportCreationDate) ||
|
||||||
|
(f == kSimpleSavesNames);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CGEMetaEngine::removeSaveState(const char *target, int slot) const {
|
void CGEMetaEngine::removeSaveState(const char *target, int slot) const {
|
||||||
|
@ -240,8 +240,6 @@ SaveStateList CGEMetaEngine::listSaves(const char *target) const {
|
||||||
return saveList;
|
return saveList;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CGEMetaEngine::simpleSaveNames() const { return true; }
|
|
||||||
|
|
||||||
SaveStateDescriptor CGEMetaEngine::querySaveMetaInfos(const char *target, int slot) const {
|
SaveStateDescriptor CGEMetaEngine::querySaveMetaInfos(const char *target, int slot) const {
|
||||||
Common::String fileName = Common::String::format("%s.%03d", target, slot);
|
Common::String fileName = Common::String::format("%s.%03d", target, slot);
|
||||||
Common::InSaveFile *f = g_system->getSavefileManager()->openForLoading(fileName);
|
Common::InSaveFile *f = g_system->getSavefileManager()->openForLoading(fileName);
|
||||||
|
|
|
@ -127,7 +127,6 @@ public:
|
||||||
virtual bool hasFeature(MetaEngineFeature f) const;
|
virtual bool hasFeature(MetaEngineFeature f) const;
|
||||||
virtual int getMaximumSaveSlot() const;
|
virtual int getMaximumSaveSlot() const;
|
||||||
virtual SaveStateList listSaves(const char *target) const;
|
virtual SaveStateList listSaves(const char *target) const;
|
||||||
virtual bool simpleSaveNames() const;
|
|
||||||
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
||||||
virtual void removeSaveState(const char *target, int slot) const;
|
virtual void removeSaveState(const char *target, int slot) const;
|
||||||
};
|
};
|
||||||
|
@ -186,7 +185,8 @@ bool CGE2MetaEngine::hasFeature(MetaEngineFeature f) const {
|
||||||
(f == kSavesSupportThumbnail) ||
|
(f == kSavesSupportThumbnail) ||
|
||||||
(f == kSavesSupportCreationDate) ||
|
(f == kSavesSupportCreationDate) ||
|
||||||
(f == kSupportsListSaves) ||
|
(f == kSupportsListSaves) ||
|
||||||
(f == kSupportsLoadingDuringStartup);
|
(f == kSupportsLoadingDuringStartup) ||
|
||||||
|
(f == kSimpleSavesNames);
|
||||||
}
|
}
|
||||||
|
|
||||||
int CGE2MetaEngine::getMaximumSaveSlot() const {
|
int CGE2MetaEngine::getMaximumSaveSlot() const {
|
||||||
|
@ -240,8 +240,6 @@ SaveStateList CGE2MetaEngine::listSaves(const char *target) const {
|
||||||
return saveList;
|
return saveList;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CGE2MetaEngine::simpleSaveNames() const { return true; }
|
|
||||||
|
|
||||||
SaveStateDescriptor CGE2MetaEngine::querySaveMetaInfos(const char *target, int slot) const {
|
SaveStateDescriptor CGE2MetaEngine::querySaveMetaInfos(const char *target, int slot) const {
|
||||||
Common::String fileName = Common::String::format("%s.%03d", target, slot);
|
Common::String fileName = Common::String::format("%s.%03d", target, slot);
|
||||||
Common::InSaveFile *f = g_system->getSavefileManager()->openForLoading(fileName);
|
Common::InSaveFile *f = g_system->getSavefileManager()->openForLoading(fileName);
|
||||||
|
|
|
@ -104,7 +104,6 @@ public:
|
||||||
|
|
||||||
virtual bool hasFeature(MetaEngineFeature f) const;
|
virtual bool hasFeature(MetaEngineFeature f) const;
|
||||||
virtual SaveStateList listSaves(const char *target) const;
|
virtual SaveStateList listSaves(const char *target) const;
|
||||||
virtual bool simpleSaveNames() const;
|
|
||||||
virtual int getMaximumSaveSlot() const;
|
virtual int getMaximumSaveSlot() const;
|
||||||
virtual void removeSaveState(const char *target, int slot) const;
|
virtual void removeSaveState(const char *target, int slot) const;
|
||||||
};
|
};
|
||||||
|
@ -174,8 +173,6 @@ SaveStateList CineMetaEngine::listSaves(const char *target) const {
|
||||||
return saveList;
|
return saveList;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CineMetaEngine::simpleSaveNames() const { return false; }
|
|
||||||
|
|
||||||
int CineMetaEngine::getMaximumSaveSlot() const { return 9; }
|
int CineMetaEngine::getMaximumSaveSlot() const { return 9; }
|
||||||
|
|
||||||
void CineMetaEngine::removeSaveState(const char *target, int slot) const {
|
void CineMetaEngine::removeSaveState(const char *target, int slot) const {
|
||||||
|
|
|
@ -211,7 +211,6 @@ public:
|
||||||
virtual bool hasFeature(MetaEngineFeature f) const;
|
virtual bool hasFeature(MetaEngineFeature f) const;
|
||||||
virtual int getMaximumSaveSlot() const { return 99; }
|
virtual int getMaximumSaveSlot() const { return 99; }
|
||||||
virtual SaveStateList listSaves(const char *target) const;
|
virtual SaveStateList listSaves(const char *target) const;
|
||||||
virtual bool simpleSaveNames() const;
|
|
||||||
virtual void removeSaveState(const char *target, int slot) const;
|
virtual void removeSaveState(const char *target, int slot) const;
|
||||||
virtual SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
virtual SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
||||||
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
||||||
|
@ -255,8 +254,6 @@ SaveStateList CruiseMetaEngine::listSaves(const char *target) const {
|
||||||
return saveList;
|
return saveList;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CruiseMetaEngine::simpleSaveNames() const { return false; }
|
|
||||||
|
|
||||||
void CruiseMetaEngine::removeSaveState(const char *target, int slot) const {
|
void CruiseMetaEngine::removeSaveState(const char *target, int slot) const {
|
||||||
g_system->getSavefileManager()->removeSavefile(Cruise::CruiseEngine::getSavegameFile(slot));
|
g_system->getSavefileManager()->removeSavefile(Cruise::CruiseEngine::getSavegameFile(slot));
|
||||||
}
|
}
|
||||||
|
|
|
@ -98,7 +98,6 @@ public:
|
||||||
virtual bool hasFeature(MetaEngineFeature f) const;
|
virtual bool hasFeature(MetaEngineFeature f) const;
|
||||||
virtual int getMaximumSaveSlot() const { return 99; }
|
virtual int getMaximumSaveSlot() const { return 99; }
|
||||||
virtual SaveStateList listSaves(const char *target) const;
|
virtual SaveStateList listSaves(const char *target) const;
|
||||||
virtual bool simpleSaveNames() const;
|
|
||||||
virtual void removeSaveState(const char *target, int slot) const;
|
virtual void removeSaveState(const char *target, int slot) const;
|
||||||
virtual SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
virtual SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
||||||
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
||||||
|
@ -148,8 +147,6 @@ SaveStateList DraciMetaEngine::listSaves(const char *target) const {
|
||||||
return saveList;
|
return saveList;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool DraciMetaEngine::simpleSaveNames() const { return false; }
|
|
||||||
|
|
||||||
void DraciMetaEngine::removeSaveState(const char *target, int slot) const {
|
void DraciMetaEngine::removeSaveState(const char *target, int slot) const {
|
||||||
g_system->getSavefileManager()->removeSavefile(Draci::DraciEngine::getSavegameFile(slot));
|
g_system->getSavefileManager()->removeSavefile(Draci::DraciEngine::getSavegameFile(slot));
|
||||||
}
|
}
|
||||||
|
|
|
@ -326,7 +326,6 @@ public:
|
||||||
virtual bool hasFeature(MetaEngineFeature f) const;
|
virtual bool hasFeature(MetaEngineFeature f) const;
|
||||||
virtual const ExtraGuiOptions getExtraGuiOptions(const Common::String &target) const;
|
virtual const ExtraGuiOptions getExtraGuiOptions(const Common::String &target) const;
|
||||||
virtual SaveStateList listSaves(const char *target) const;
|
virtual SaveStateList listSaves(const char *target) const;
|
||||||
virtual bool simpleSaveNames() const;
|
|
||||||
virtual int getMaximumSaveSlot() const;
|
virtual int getMaximumSaveSlot() const;
|
||||||
virtual void removeSaveState(const char *target, int slot) const;
|
virtual void removeSaveState(const char *target, int slot) const;
|
||||||
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
||||||
|
@ -340,7 +339,8 @@ bool DrasculaMetaEngine::hasFeature(MetaEngineFeature f) const {
|
||||||
(f == kSavesSupportMetaInfo) ||
|
(f == kSavesSupportMetaInfo) ||
|
||||||
(f == kSavesSupportThumbnail) ||
|
(f == kSavesSupportThumbnail) ||
|
||||||
(f == kSavesSupportCreationDate) ||
|
(f == kSavesSupportCreationDate) ||
|
||||||
(f == kSavesSupportPlayTime);
|
(f == kSavesSupportPlayTime) ||
|
||||||
|
(f == kSimpleSavesNames);
|
||||||
}
|
}
|
||||||
|
|
||||||
const ExtraGuiOptions DrasculaMetaEngine::getExtraGuiOptions(const Common::String &target) const {
|
const ExtraGuiOptions DrasculaMetaEngine::getExtraGuiOptions(const Common::String &target) const {
|
||||||
|
@ -383,8 +383,6 @@ SaveStateList DrasculaMetaEngine::listSaves(const char *target) const {
|
||||||
return saveList;
|
return saveList;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool DrasculaMetaEngine::simpleSaveNames() const { return true; }
|
|
||||||
|
|
||||||
SaveStateDescriptor DrasculaMetaEngine::querySaveMetaInfos(const char *target, int slot) const {
|
SaveStateDescriptor DrasculaMetaEngine::querySaveMetaInfos(const char *target, int slot) const {
|
||||||
Common::String fileName = Common::String::format("%s.%03d", target, slot);
|
Common::String fileName = Common::String::format("%s.%03d", target, slot);
|
||||||
|
|
||||||
|
|
|
@ -86,7 +86,6 @@ public:
|
||||||
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
||||||
virtual bool hasFeature(MetaEngineFeature f) const;
|
virtual bool hasFeature(MetaEngineFeature f) const;
|
||||||
virtual SaveStateList listSaves(const char *target) const;
|
virtual SaveStateList listSaves(const char *target) const;
|
||||||
virtual bool simpleSaveNames() const;
|
|
||||||
virtual int getMaximumSaveSlot() const;
|
virtual int getMaximumSaveSlot() const;
|
||||||
virtual void removeSaveState(const char *target, int slot) const;
|
virtual void removeSaveState(const char *target, int slot) const;
|
||||||
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
||||||
|
@ -152,8 +151,6 @@ SaveStateList DreamWebMetaEngine::listSaves(const char *target) const {
|
||||||
return saveList;
|
return saveList;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool DreamWebMetaEngine::simpleSaveNames() const { return false; }
|
|
||||||
|
|
||||||
int DreamWebMetaEngine::getMaximumSaveSlot() const { return 99; }
|
int DreamWebMetaEngine::getMaximumSaveSlot() const { return 99; }
|
||||||
|
|
||||||
void DreamWebMetaEngine::removeSaveState(const char *target, int slot) const {
|
void DreamWebMetaEngine::removeSaveState(const char *target, int slot) const {
|
||||||
|
|
|
@ -90,7 +90,6 @@ public:
|
||||||
virtual bool hasFeature(MetaEngineFeature f) const;
|
virtual bool hasFeature(MetaEngineFeature f) const;
|
||||||
virtual int getMaximumSaveSlot() const { return 8; }
|
virtual int getMaximumSaveSlot() const { return 8; }
|
||||||
virtual SaveStateList listSaves(const char *target) const;
|
virtual SaveStateList listSaves(const char *target) const;
|
||||||
virtual bool simpleSaveNames() const;
|
|
||||||
virtual void removeSaveState(const char *target, int slot) const;
|
virtual void removeSaveState(const char *target, int slot) const;
|
||||||
virtual SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
virtual SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
||||||
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
||||||
|
@ -135,8 +134,6 @@ SaveStateList FullpipeMetaEngine::listSaves(const char *target) const {
|
||||||
return saveList;
|
return saveList;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool FullpipeMetaEngine::simpleSaveNames() const { return false; }
|
|
||||||
|
|
||||||
void FullpipeMetaEngine::removeSaveState(const char *target, int slot) const {
|
void FullpipeMetaEngine::removeSaveState(const char *target, int slot) const {
|
||||||
g_system->getSavefileManager()->removeSavefile(Fullpipe::getSavegameFile(slot));
|
g_system->getSavefileManager()->removeSavefile(Fullpipe::getSavegameFile(slot));
|
||||||
}
|
}
|
||||||
|
|
|
@ -78,7 +78,6 @@ public:
|
||||||
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
||||||
virtual int getMaximumSaveSlot() const;
|
virtual int getMaximumSaveSlot() const;
|
||||||
virtual SaveStateList listSaves(const char *target) const;
|
virtual SaveStateList listSaves(const char *target) const;
|
||||||
virtual bool simpleSaveNames() const;
|
|
||||||
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
||||||
virtual void removeSaveState(const char *target, int slot) const;
|
virtual void removeSaveState(const char *target, int slot) const;
|
||||||
};
|
};
|
||||||
|
@ -90,7 +89,8 @@ bool GnapMetaEngine::hasFeature(MetaEngineFeature f) const {
|
||||||
(f == kSupportsDeleteSave) ||
|
(f == kSupportsDeleteSave) ||
|
||||||
(f == kSavesSupportMetaInfo) ||
|
(f == kSavesSupportMetaInfo) ||
|
||||||
(f == kSavesSupportThumbnail) ||
|
(f == kSavesSupportThumbnail) ||
|
||||||
(f == kSavesSupportCreationDate);
|
(f == kSavesSupportCreationDate) ||
|
||||||
|
(f == kSimpleSavesNames);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Gnap::GnapEngine::hasFeature(EngineFeature f) const {
|
bool Gnap::GnapEngine::hasFeature(EngineFeature f) const {
|
||||||
|
@ -142,8 +142,6 @@ SaveStateList GnapMetaEngine::listSaves(const char *target) const {
|
||||||
return saveList;
|
return saveList;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool GnapMetaEngine::simpleSaveNames() const { return true; }
|
|
||||||
|
|
||||||
SaveStateDescriptor GnapMetaEngine::querySaveMetaInfos(const char *target, int slot) const {
|
SaveStateDescriptor GnapMetaEngine::querySaveMetaInfos(const char *target, int slot) const {
|
||||||
Common::String fileName = Common::String::format("%s.%03d", target, slot);
|
Common::String fileName = Common::String::format("%s.%03d", target, slot);
|
||||||
Common::InSaveFile *file = g_system->getSavefileManager()->openForLoading(fileName);
|
Common::InSaveFile *file = g_system->getSavefileManager()->openForLoading(fileName);
|
||||||
|
|
|
@ -352,7 +352,6 @@ public:
|
||||||
|
|
||||||
bool hasFeature(MetaEngineFeature f) const;
|
bool hasFeature(MetaEngineFeature f) const;
|
||||||
SaveStateList listSaves(const char *target) const;
|
SaveStateList listSaves(const char *target) const;
|
||||||
virtual bool simpleSaveNames() const;
|
|
||||||
int getMaximumSaveSlot() const;
|
int getMaximumSaveSlot() const;
|
||||||
void removeSaveState(const char *target, int slot) const;
|
void removeSaveState(const char *target, int slot) const;
|
||||||
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
||||||
|
@ -377,8 +376,6 @@ SaveStateList GroovieMetaEngine::listSaves(const char *target) const {
|
||||||
return SaveLoad::listValidSaves(target);
|
return SaveLoad::listValidSaves(target);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool GroovieMetaEngine::simpleSaveNames() const { return false; }
|
|
||||||
|
|
||||||
int GroovieMetaEngine::getMaximumSaveSlot() const {
|
int GroovieMetaEngine::getMaximumSaveSlot() const {
|
||||||
return SaveLoad::getMaximumSlot();
|
return SaveLoad::getMaximumSlot();
|
||||||
}
|
}
|
||||||
|
|
|
@ -117,7 +117,6 @@ public:
|
||||||
virtual bool hasFeature(MetaEngineFeature f) const;
|
virtual bool hasFeature(MetaEngineFeature f) const;
|
||||||
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
||||||
virtual SaveStateList listSaves(const char *target) const;
|
virtual SaveStateList listSaves(const char *target) const;
|
||||||
virtual bool simpleSaveNames() const;
|
|
||||||
virtual int getMaximumSaveSlot() const;
|
virtual int getMaximumSaveSlot() const;
|
||||||
virtual void removeSaveState(const char *target, int slot) const;
|
virtual void removeSaveState(const char *target, int slot) const;
|
||||||
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
||||||
|
@ -129,7 +128,8 @@ bool HopkinsMetaEngine::hasFeature(MetaEngineFeature f) const {
|
||||||
(f == kSupportsLoadingDuringStartup) ||
|
(f == kSupportsLoadingDuringStartup) ||
|
||||||
(f == kSupportsDeleteSave) ||
|
(f == kSupportsDeleteSave) ||
|
||||||
(f == kSavesSupportMetaInfo) ||
|
(f == kSavesSupportMetaInfo) ||
|
||||||
(f == kSavesSupportThumbnail);
|
(f == kSavesSupportThumbnail) ||
|
||||||
|
(f == kSimpleSavesNames);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Hopkins::HopkinsEngine::hasFeature(EngineFeature f) const {
|
bool Hopkins::HopkinsEngine::hasFeature(EngineFeature f) const {
|
||||||
|
@ -183,8 +183,6 @@ SaveStateList HopkinsMetaEngine::listSaves(const char *target) const {
|
||||||
return saveList;
|
return saveList;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool HopkinsMetaEngine::simpleSaveNames() const { return true; }
|
|
||||||
|
|
||||||
int HopkinsMetaEngine::getMaximumSaveSlot() const {
|
int HopkinsMetaEngine::getMaximumSaveSlot() const {
|
||||||
return MAX_SAVES;
|
return MAX_SAVES;
|
||||||
}
|
}
|
||||||
|
|
|
@ -149,7 +149,6 @@ public:
|
||||||
|
|
||||||
int getMaximumSaveSlot() const;
|
int getMaximumSaveSlot() const;
|
||||||
SaveStateList listSaves(const char *target) const;
|
SaveStateList listSaves(const char *target) const;
|
||||||
virtual bool simpleSaveNames() const;
|
|
||||||
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
||||||
void removeSaveState(const char *target, int slot) const;
|
void removeSaveState(const char *target, int slot) const;
|
||||||
};
|
};
|
||||||
|
@ -222,8 +221,6 @@ SaveStateList HugoMetaEngine::listSaves(const char *target) const {
|
||||||
return saveList;
|
return saveList;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool HugoMetaEngine::simpleSaveNames() const { return false; }
|
|
||||||
|
|
||||||
SaveStateDescriptor HugoMetaEngine::querySaveMetaInfos(const char *target, int slot) const {
|
SaveStateDescriptor HugoMetaEngine::querySaveMetaInfos(const char *target, int slot) const {
|
||||||
Common::String fileName = Common::String::format("%s-%02d.SAV", target, slot);
|
Common::String fileName = Common::String::format("%s-%02d.SAV", target, slot);
|
||||||
Common::InSaveFile *file = g_system->getSavefileManager()->openForLoading(fileName);
|
Common::InSaveFile *file = g_system->getSavefileManager()->openForLoading(fileName);
|
||||||
|
|
|
@ -162,7 +162,6 @@ public:
|
||||||
bool hasFeature(MetaEngineFeature f) const;
|
bool hasFeature(MetaEngineFeature f) const;
|
||||||
bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
||||||
SaveStateList listSaves(const char *target) const;
|
SaveStateList listSaves(const char *target) const;
|
||||||
virtual bool simpleSaveNames() const;
|
|
||||||
virtual int getMaximumSaveSlot() const;
|
virtual int getMaximumSaveSlot() const;
|
||||||
void removeSaveState(const char *target, int slot) const;
|
void removeSaveState(const char *target, int slot) const;
|
||||||
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
||||||
|
@ -174,7 +173,8 @@ bool KyraMetaEngine::hasFeature(MetaEngineFeature f) const {
|
||||||
(f == kSupportsLoadingDuringStartup) ||
|
(f == kSupportsLoadingDuringStartup) ||
|
||||||
(f == kSupportsDeleteSave) ||
|
(f == kSupportsDeleteSave) ||
|
||||||
(f == kSavesSupportMetaInfo) ||
|
(f == kSavesSupportMetaInfo) ||
|
||||||
(f == kSavesSupportThumbnail);
|
(f == kSavesSupportThumbnail) ||
|
||||||
|
(f == kSimpleSavesNames);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Kyra::KyraEngine_v1::hasFeature(EngineFeature f) const {
|
bool Kyra::KyraEngine_v1::hasFeature(EngineFeature f) const {
|
||||||
|
@ -274,8 +274,6 @@ SaveStateList KyraMetaEngine::listSaves(const char *target) const {
|
||||||
return saveList;
|
return saveList;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool KyraMetaEngine::simpleSaveNames() const { return true; }
|
|
||||||
|
|
||||||
int KyraMetaEngine::getMaximumSaveSlot() const {
|
int KyraMetaEngine::getMaximumSaveSlot() const {
|
||||||
return 999;
|
return 999;
|
||||||
}
|
}
|
||||||
|
|
|
@ -138,7 +138,6 @@ public:
|
||||||
|
|
||||||
virtual bool hasFeature(MetaEngineFeature f) const;
|
virtual bool hasFeature(MetaEngineFeature f) const;
|
||||||
SaveStateList listSaves(const char *target) const;
|
SaveStateList listSaves(const char *target) const;
|
||||||
virtual bool simpleSaveNames() const;
|
|
||||||
virtual int getMaximumSaveSlot() const;
|
virtual int getMaximumSaveSlot() const;
|
||||||
void removeSaveState(const char *target, int slot) const;
|
void removeSaveState(const char *target, int slot) const;
|
||||||
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
||||||
|
@ -152,7 +151,8 @@ bool LabMetaEngine::hasFeature(MetaEngineFeature f) const {
|
||||||
(f == kSavesSupportMetaInfo) ||
|
(f == kSavesSupportMetaInfo) ||
|
||||||
(f == kSavesSupportThumbnail) ||
|
(f == kSavesSupportThumbnail) ||
|
||||||
(f == kSavesSupportCreationDate) ||
|
(f == kSavesSupportCreationDate) ||
|
||||||
(f == kSavesSupportPlayTime);
|
(f == kSavesSupportPlayTime) ||
|
||||||
|
(f == kSimpleSavesNames);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Lab::LabEngine::hasFeature(EngineFeature f) const {
|
bool Lab::LabEngine::hasFeature(EngineFeature f) const {
|
||||||
|
@ -192,8 +192,6 @@ SaveStateList LabMetaEngine::listSaves(const char *target) const {
|
||||||
return saveList;
|
return saveList;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool LabMetaEngine::simpleSaveNames() const { return true; }
|
|
||||||
|
|
||||||
int LabMetaEngine::getMaximumSaveSlot() const {
|
int LabMetaEngine::getMaximumSaveSlot() const {
|
||||||
return 999;
|
return 999;
|
||||||
}
|
}
|
||||||
|
|
|
@ -212,7 +212,6 @@ public:
|
||||||
virtual bool hasFeature(MetaEngineFeature f) const;
|
virtual bool hasFeature(MetaEngineFeature f) const;
|
||||||
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
||||||
virtual SaveStateList listSaves(const char *target) const;
|
virtual SaveStateList listSaves(const char *target) const;
|
||||||
virtual bool simpleSaveNames() const;
|
|
||||||
virtual int getMaximumSaveSlot() const;
|
virtual int getMaximumSaveSlot() const;
|
||||||
virtual void removeSaveState(const char *target, int slot) const;
|
virtual void removeSaveState(const char *target, int slot) const;
|
||||||
};
|
};
|
||||||
|
@ -267,8 +266,6 @@ SaveStateList LureMetaEngine::listSaves(const char *target) const {
|
||||||
return saveList;
|
return saveList;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool LureMetaEngine::simpleSaveNames() const { return false; }
|
|
||||||
|
|
||||||
int LureMetaEngine::getMaximumSaveSlot() const { return 999; }
|
int LureMetaEngine::getMaximumSaveSlot() const { return 999; }
|
||||||
|
|
||||||
void LureMetaEngine::removeSaveState(const char *target, int slot) const {
|
void LureMetaEngine::removeSaveState(const char *target, int slot) const {
|
||||||
|
|
|
@ -155,7 +155,6 @@ public:
|
||||||
virtual bool hasFeature(MetaEngineFeature f) const;
|
virtual bool hasFeature(MetaEngineFeature f) const;
|
||||||
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
||||||
virtual SaveStateList listSaves(const char *target) const;
|
virtual SaveStateList listSaves(const char *target) const;
|
||||||
virtual bool simpleSaveNames() const;
|
|
||||||
virtual int getMaximumSaveSlot() const;
|
virtual int getMaximumSaveSlot() const;
|
||||||
virtual void removeSaveState(const char *target, int slot) const;
|
virtual void removeSaveState(const char *target, int slot) const;
|
||||||
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
||||||
|
@ -167,7 +166,8 @@ bool MADSMetaEngine::hasFeature(MetaEngineFeature f) const {
|
||||||
(f == kSupportsLoadingDuringStartup) ||
|
(f == kSupportsLoadingDuringStartup) ||
|
||||||
(f == kSupportsDeleteSave) ||
|
(f == kSupportsDeleteSave) ||
|
||||||
(f == kSavesSupportMetaInfo) ||
|
(f == kSavesSupportMetaInfo) ||
|
||||||
(f == kSavesSupportThumbnail);
|
(f == kSavesSupportThumbnail) ||
|
||||||
|
(f == kSimpleSavesNames);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool MADS::MADSEngine::hasFeature(EngineFeature f) const {
|
bool MADS::MADSEngine::hasFeature(EngineFeature f) const {
|
||||||
|
@ -218,8 +218,6 @@ SaveStateList MADSMetaEngine::listSaves(const char *target) const {
|
||||||
return saveList;
|
return saveList;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool MADSMetaEngine::simpleSaveNames() const { return true; }
|
|
||||||
|
|
||||||
int MADSMetaEngine::getMaximumSaveSlot() const {
|
int MADSMetaEngine::getMaximumSaveSlot() const {
|
||||||
return MAX_SAVES;
|
return MAX_SAVES;
|
||||||
}
|
}
|
||||||
|
|
|
@ -115,20 +115,6 @@ public:
|
||||||
return SaveStateList();
|
return SaveStateList();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Return whether engine's saves could be detected with
|
|
||||||
* "<target>.###" pattern and "###" corresponds to slot
|
|
||||||
* number.
|
|
||||||
*
|
|
||||||
* If that's not true or engine is using some unusual way
|
|
||||||
* of detecting saves and slot numbers, this should return
|
|
||||||
* false. In that case Save/Load dialog would be unavailable
|
|
||||||
* during cloud saves sync.
|
|
||||||
*
|
|
||||||
* @return true, if "<target>.###" is OK for this engine
|
|
||||||
*/
|
|
||||||
virtual bool simpleSaveNames() const { return false; }
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return a list of extra GUI options for the specified target.
|
* Return a list of extra GUI options for the specified target.
|
||||||
* If no target is specified, all of the available custom GUI options are
|
* If no target is specified, all of the available custom GUI options are
|
||||||
|
@ -250,7 +236,19 @@ public:
|
||||||
* the game till the save.
|
* the game till the save.
|
||||||
* This flag may only be set when 'kSavesSupportMetaInfo' is set.
|
* This flag may only be set when 'kSavesSupportMetaInfo' is set.
|
||||||
*/
|
*/
|
||||||
kSavesSupportPlayTime
|
kSavesSupportPlayTime,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Feature is available if engine's saves could be detected
|
||||||
|
* with "<target>.###" pattern and "###" corresponds to slot
|
||||||
|
* number.
|
||||||
|
*
|
||||||
|
* If that's not true or engine is using some unusual way
|
||||||
|
* of detecting saves and slot numbers, this should be
|
||||||
|
* unavailable. In that case Save/Load dialog for engine's
|
||||||
|
* games is locked during cloud saves sync.
|
||||||
|
*/
|
||||||
|
kSimpleSavesNames
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -200,7 +200,6 @@ public:
|
||||||
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
||||||
virtual SaveStateList listSaves(const char *target) const;
|
virtual SaveStateList listSaves(const char *target) const;
|
||||||
SaveStateList listSavesForPrefix(const char *prefix, const char *extension) const;
|
SaveStateList listSavesForPrefix(const char *prefix, const char *extension) const;
|
||||||
virtual bool simpleSaveNames() const;
|
|
||||||
virtual int getMaximumSaveSlot() const { return 999; }
|
virtual int getMaximumSaveSlot() const { return 999; }
|
||||||
virtual void removeSaveState(const char *target, int slot) const;
|
virtual void removeSaveState(const char *target, int slot) const;
|
||||||
virtual SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
virtual SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
||||||
|
@ -273,8 +272,6 @@ SaveStateList MohawkMetaEngine::listSaves(const char *target) const {
|
||||||
return saveList;
|
return saveList;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool MohawkMetaEngine::simpleSaveNames() const { return false; }
|
|
||||||
|
|
||||||
void MohawkMetaEngine::removeSaveState(const char *target, int slot) const {
|
void MohawkMetaEngine::removeSaveState(const char *target, int slot) const {
|
||||||
|
|
||||||
// Removing saved games is only supported in Myst/Riven currently.
|
// Removing saved games is only supported in Myst/Riven currently.
|
||||||
|
|
|
@ -72,7 +72,6 @@ public:
|
||||||
virtual bool hasFeature(MetaEngineFeature f) const;
|
virtual bool hasFeature(MetaEngineFeature f) const;
|
||||||
virtual int getMaximumSaveSlot() const;
|
virtual int getMaximumSaveSlot() const;
|
||||||
virtual SaveStateList listSaves(const char *target) const;
|
virtual SaveStateList listSaves(const char *target) const;
|
||||||
virtual bool simpleSaveNames() const;
|
|
||||||
virtual SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
virtual SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -91,6 +90,7 @@ bool MortevielleMetaEngine::hasFeature(MetaEngineFeature f) const {
|
||||||
case kSavesSupportMetaInfo:
|
case kSavesSupportMetaInfo:
|
||||||
case kSavesSupportThumbnail:
|
case kSavesSupportThumbnail:
|
||||||
case kSavesSupportCreationDate:
|
case kSavesSupportCreationDate:
|
||||||
|
case kSimpleSavesNames:
|
||||||
return true;
|
return true;
|
||||||
default:
|
default:
|
||||||
return false;
|
return false;
|
||||||
|
@ -103,8 +103,6 @@ SaveStateList MortevielleMetaEngine::listSaves(const char *target) const {
|
||||||
return Mortevielle::SavegameManager::listSaves(target);
|
return Mortevielle::SavegameManager::listSaves(target);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool MortevielleMetaEngine::simpleSaveNames() const { return true; }
|
|
||||||
|
|
||||||
SaveStateDescriptor MortevielleMetaEngine::querySaveMetaInfos(const char *target, int slot) const {
|
SaveStateDescriptor MortevielleMetaEngine::querySaveMetaInfos(const char *target, int slot) const {
|
||||||
Common::String filename = Mortevielle::MortevielleEngine::generateSaveFilename(target, slot);
|
Common::String filename = Mortevielle::MortevielleEngine::generateSaveFilename(target, slot);
|
||||||
return Mortevielle::SavegameManager::querySaveMetaInfos(filename);
|
return Mortevielle::SavegameManager::querySaveMetaInfos(filename);
|
||||||
|
|
|
@ -214,7 +214,6 @@ public:
|
||||||
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
||||||
virtual const ExtraGuiOptions getExtraGuiOptions(const Common::String &target) const;
|
virtual const ExtraGuiOptions getExtraGuiOptions(const Common::String &target) const;
|
||||||
SaveStateList listSaves(const char *target) const;
|
SaveStateList listSaves(const char *target) const;
|
||||||
virtual bool simpleSaveNames() const;
|
|
||||||
virtual int getMaximumSaveSlot() const;
|
virtual int getMaximumSaveSlot() const;
|
||||||
void removeSaveState(const char *target, int slot) const;
|
void removeSaveState(const char *target, int slot) const;
|
||||||
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
||||||
|
@ -229,7 +228,8 @@ bool NeverhoodMetaEngine::hasFeature(MetaEngineFeature f) const {
|
||||||
(f == kSavesSupportMetaInfo) ||
|
(f == kSavesSupportMetaInfo) ||
|
||||||
(f == kSavesSupportThumbnail) ||
|
(f == kSavesSupportThumbnail) ||
|
||||||
(f == kSavesSupportCreationDate) ||
|
(f == kSavesSupportCreationDate) ||
|
||||||
(f == kSavesSupportPlayTime);
|
(f == kSavesSupportPlayTime) ||
|
||||||
|
(f == kSimpleSavesNames);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Neverhood::NeverhoodEngine::hasFeature(EngineFeature f) const {
|
bool Neverhood::NeverhoodEngine::hasFeature(EngineFeature f) const {
|
||||||
|
@ -284,8 +284,6 @@ SaveStateList NeverhoodMetaEngine::listSaves(const char *target) const {
|
||||||
return saveList;
|
return saveList;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool NeverhoodMetaEngine::simpleSaveNames() const { return true; }
|
|
||||||
|
|
||||||
int NeverhoodMetaEngine::getMaximumSaveSlot() const {
|
int NeverhoodMetaEngine::getMaximumSaveSlot() const {
|
||||||
return 999;
|
return 999;
|
||||||
}
|
}
|
||||||
|
|
|
@ -234,7 +234,6 @@ public:
|
||||||
virtual bool hasFeature(MetaEngineFeature f) const;
|
virtual bool hasFeature(MetaEngineFeature f) const;
|
||||||
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
||||||
virtual SaveStateList listSaves(const char *target) const;
|
virtual SaveStateList listSaves(const char *target) const;
|
||||||
virtual bool simpleSaveNames() const;
|
|
||||||
virtual int getMaximumSaveSlot() const;
|
virtual int getMaximumSaveSlot() const;
|
||||||
virtual void removeSaveState(const char *target, int slot) const;
|
virtual void removeSaveState(const char *target, int slot) const;
|
||||||
};
|
};
|
||||||
|
@ -295,8 +294,6 @@ SaveStateList ParallactionMetaEngine::listSaves(const char *target) const {
|
||||||
return saveList;
|
return saveList;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ParallactionMetaEngine::simpleSaveNames() const { return false; }
|
|
||||||
|
|
||||||
int ParallactionMetaEngine::getMaximumSaveSlot() const { return 99; }
|
int ParallactionMetaEngine::getMaximumSaveSlot() const { return 99; }
|
||||||
|
|
||||||
void ParallactionMetaEngine::removeSaveState(const char *target, int slot) const {
|
void ParallactionMetaEngine::removeSaveState(const char *target, int slot) const {
|
||||||
|
|
|
@ -148,7 +148,6 @@ public:
|
||||||
virtual bool hasFeature(MetaEngineFeature f) const;
|
virtual bool hasFeature(MetaEngineFeature f) const;
|
||||||
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
||||||
virtual SaveStateList listSaves(const char *target) const;
|
virtual SaveStateList listSaves(const char *target) const;
|
||||||
virtual bool simpleSaveNames() const;
|
|
||||||
virtual int getMaximumSaveSlot() const { return 999; }
|
virtual int getMaximumSaveSlot() const { return 999; }
|
||||||
virtual void removeSaveState(const char *target, int slot) const;
|
virtual void removeSaveState(const char *target, int slot) const;
|
||||||
};
|
};
|
||||||
|
@ -179,8 +178,6 @@ SaveStateList PegasusMetaEngine::listSaves(const char *target) const {
|
||||||
return saveList;
|
return saveList;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PegasusMetaEngine::simpleSaveNames() const { return false; }
|
|
||||||
|
|
||||||
void PegasusMetaEngine::removeSaveState(const char *target, int slot) const {
|
void PegasusMetaEngine::removeSaveState(const char *target, int slot) const {
|
||||||
// See listSaves() for info on the pattern
|
// See listSaves() for info on the pattern
|
||||||
Common::StringArray fileNames = Pegasus::PegasusEngine::listSaveFiles();
|
Common::StringArray fileNames = Pegasus::PegasusEngine::listSaveFiles();
|
||||||
|
|
|
@ -56,7 +56,8 @@ bool PrinceMetaEngine::hasFeature(MetaEngineFeature f) const {
|
||||||
(f == kSavesSupportThumbnail) ||
|
(f == kSavesSupportThumbnail) ||
|
||||||
(f == kSavesSupportCreationDate) ||
|
(f == kSavesSupportCreationDate) ||
|
||||||
(f == kSupportsListSaves) ||
|
(f == kSupportsListSaves) ||
|
||||||
(f == kSupportsLoadingDuringStartup);
|
(f == kSupportsLoadingDuringStartup) ||
|
||||||
|
(f == kSimpleSavesNames);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Prince::PrinceEngine::hasFeature(EngineFeature f) const {
|
bool Prince::PrinceEngine::hasFeature(EngineFeature f) const {
|
||||||
|
|
|
@ -121,7 +121,6 @@ public:
|
||||||
virtual bool hasFeature(MetaEngineFeature f) const;
|
virtual bool hasFeature(MetaEngineFeature f) const;
|
||||||
virtual int getMaximumSaveSlot() const;
|
virtual int getMaximumSaveSlot() const;
|
||||||
virtual SaveStateList listSaves(const char *target) const;
|
virtual SaveStateList listSaves(const char *target) const;
|
||||||
virtual bool simpleSaveNames() const;
|
|
||||||
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
||||||
virtual void removeSaveState(const char *target, int slot) const;
|
virtual void removeSaveState(const char *target, int slot) const;
|
||||||
};
|
};
|
||||||
|
|
|
@ -105,8 +105,6 @@ SaveStateList PrinceMetaEngine::listSaves(const char *target) const {
|
||||||
return saveList;
|
return saveList;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PrinceMetaEngine::simpleSaveNames() const { return true; }
|
|
||||||
|
|
||||||
SaveStateDescriptor PrinceMetaEngine::querySaveMetaInfos(const char *target, int slot) const {
|
SaveStateDescriptor PrinceMetaEngine::querySaveMetaInfos(const char *target, int slot) const {
|
||||||
Common::String fileName = Common::String::format("%s.%03d", target, slot);
|
Common::String fileName = Common::String::format("%s.%03d", target, slot);
|
||||||
Common::InSaveFile *f = g_system->getSavefileManager()->openForLoading(fileName);
|
Common::InSaveFile *f = g_system->getSavefileManager()->openForLoading(fileName);
|
||||||
|
|
|
@ -444,7 +444,6 @@ public:
|
||||||
virtual bool hasFeature(MetaEngineFeature f) const;
|
virtual bool hasFeature(MetaEngineFeature f) const;
|
||||||
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
||||||
virtual SaveStateList listSaves(const char *target) const;
|
virtual SaveStateList listSaves(const char *target) const;
|
||||||
virtual bool simpleSaveNames() const;
|
|
||||||
virtual int getMaximumSaveSlot() const { return 99; }
|
virtual int getMaximumSaveSlot() const { return 99; }
|
||||||
virtual void removeSaveState(const char *target, int slot) const;
|
virtual void removeSaveState(const char *target, int slot) const;
|
||||||
|
|
||||||
|
@ -530,8 +529,6 @@ SaveStateList QueenMetaEngine::listSaves(const char *target) const {
|
||||||
return saveList;
|
return saveList;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool QueenMetaEngine::simpleSaveNames() const { return false; }
|
|
||||||
|
|
||||||
void QueenMetaEngine::removeSaveState(const char *target, int slot) const {
|
void QueenMetaEngine::removeSaveState(const char *target, int slot) const {
|
||||||
Common::String filename = Common::String::format("queen.s%02d", slot);
|
Common::String filename = Common::String::format("queen.s%02d", slot);
|
||||||
|
|
||||||
|
|
|
@ -144,7 +144,6 @@ public:
|
||||||
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
||||||
|
|
||||||
virtual SaveStateList listSaves(const char *target) const;
|
virtual SaveStateList listSaves(const char *target) const;
|
||||||
virtual bool simpleSaveNames() const;
|
|
||||||
virtual int getMaximumSaveSlot() const;
|
virtual int getMaximumSaveSlot() const;
|
||||||
virtual void removeSaveState(const char *target, int slot) const;
|
virtual void removeSaveState(const char *target, int slot) const;
|
||||||
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
||||||
|
@ -158,7 +157,8 @@ bool SagaMetaEngine::hasFeature(MetaEngineFeature f) const {
|
||||||
(f == kSavesSupportMetaInfo) ||
|
(f == kSavesSupportMetaInfo) ||
|
||||||
(f == kSavesSupportThumbnail) ||
|
(f == kSavesSupportThumbnail) ||
|
||||||
(f == kSavesSupportCreationDate) ||
|
(f == kSavesSupportCreationDate) ||
|
||||||
(f == kSavesSupportPlayTime);
|
(f == kSavesSupportPlayTime) ||
|
||||||
|
(f == kSimpleSavesNames);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Saga::SagaEngine::hasFeature(EngineFeature f) const {
|
bool Saga::SagaEngine::hasFeature(EngineFeature f) const {
|
||||||
|
@ -208,8 +208,6 @@ SaveStateList SagaMetaEngine::listSaves(const char *target) const {
|
||||||
return saveList;
|
return saveList;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SagaMetaEngine::simpleSaveNames() const { return true; }
|
|
||||||
|
|
||||||
int SagaMetaEngine::getMaximumSaveSlot() const { return MAX_SAVES - 1; }
|
int SagaMetaEngine::getMaximumSaveSlot() const { return MAX_SAVES - 1; }
|
||||||
|
|
||||||
void SagaMetaEngine::removeSaveState(const char *target, int slot) const {
|
void SagaMetaEngine::removeSaveState(const char *target, int slot) const {
|
||||||
|
|
|
@ -518,7 +518,6 @@ public:
|
||||||
const ADGameDescription *fallbackDetect(const FileMap &allFiles, const Common::FSList &fslist) const;
|
const ADGameDescription *fallbackDetect(const FileMap &allFiles, const Common::FSList &fslist) const;
|
||||||
virtual bool hasFeature(MetaEngineFeature f) const;
|
virtual bool hasFeature(MetaEngineFeature f) const;
|
||||||
virtual SaveStateList listSaves(const char *target) const;
|
virtual SaveStateList listSaves(const char *target) const;
|
||||||
virtual bool simpleSaveNames() const;
|
|
||||||
virtual int getMaximumSaveSlot() const;
|
virtual int getMaximumSaveSlot() const;
|
||||||
virtual void removeSaveState(const char *target, int slot) const;
|
virtual void removeSaveState(const char *target, int slot) const;
|
||||||
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
||||||
|
@ -791,8 +790,6 @@ SaveStateList SciMetaEngine::listSaves(const char *target) const {
|
||||||
return saveList;
|
return saveList;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SciMetaEngine::simpleSaveNames() const { return true; }
|
|
||||||
|
|
||||||
SaveStateDescriptor SciMetaEngine::querySaveMetaInfos(const char *target, int slotNr) const {
|
SaveStateDescriptor SciMetaEngine::querySaveMetaInfos(const char *target, int slotNr) const {
|
||||||
Common::String fileName = Common::String::format("%s.%03d", target, slotNr);
|
Common::String fileName = Common::String::format("%s.%03d", target, slotNr);
|
||||||
Common::InSaveFile *in = g_system->getSavefileManager()->openForLoading(fileName);
|
Common::InSaveFile *in = g_system->getSavefileManager()->openForLoading(fileName);
|
||||||
|
|
|
@ -960,7 +960,6 @@ public:
|
||||||
virtual Common::Error createInstance(OSystem *syst, Engine **engine) const;
|
virtual Common::Error createInstance(OSystem *syst, Engine **engine) const;
|
||||||
|
|
||||||
virtual SaveStateList listSaves(const char *target) const;
|
virtual SaveStateList listSaves(const char *target) const;
|
||||||
virtual bool simpleSaveNames() const;
|
|
||||||
virtual int getMaximumSaveSlot() const;
|
virtual int getMaximumSaveSlot() const;
|
||||||
virtual void removeSaveState(const char *target, int slot) const;
|
virtual void removeSaveState(const char *target, int slot) const;
|
||||||
virtual SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
virtual SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
||||||
|
@ -975,7 +974,8 @@ bool ScummMetaEngine::hasFeature(MetaEngineFeature f) const {
|
||||||
(f == kSavesSupportMetaInfo) ||
|
(f == kSavesSupportMetaInfo) ||
|
||||||
(f == kSavesSupportThumbnail) ||
|
(f == kSavesSupportThumbnail) ||
|
||||||
(f == kSavesSupportCreationDate) ||
|
(f == kSavesSupportCreationDate) ||
|
||||||
(f == kSavesSupportPlayTime);
|
(f == kSavesSupportPlayTime) ||
|
||||||
|
(f == kSimpleSavesNames);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ScummEngine::hasFeature(EngineFeature f) const {
|
bool ScummEngine::hasFeature(EngineFeature f) const {
|
||||||
|
@ -1300,8 +1300,6 @@ SaveStateList ScummMetaEngine::listSaves(const char *target) const {
|
||||||
return saveList;
|
return saveList;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ScummMetaEngine::simpleSaveNames() const { return true; }
|
|
||||||
|
|
||||||
void ScummMetaEngine::removeSaveState(const char *target, int slot) const {
|
void ScummMetaEngine::removeSaveState(const char *target, int slot) const {
|
||||||
Common::String filename = ScummEngine::makeSavegameName(target, slot, false);
|
Common::String filename = ScummEngine::makeSavegameName(target, slot, false);
|
||||||
g_system->getSavefileManager()->removeSavefile(filename);
|
g_system->getSavefileManager()->removeSavefile(filename);
|
||||||
|
|
|
@ -159,8 +159,6 @@ public:
|
||||||
*/
|
*/
|
||||||
virtual SaveStateList listSaves(const char *target) const;
|
virtual SaveStateList listSaves(const char *target) const;
|
||||||
|
|
||||||
virtual bool simpleSaveNames() const;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the maximum number of allowed save slots
|
* Returns the maximum number of allowed save slots
|
||||||
*/
|
*/
|
||||||
|
@ -201,7 +199,8 @@ bool SherlockMetaEngine::hasFeature(MetaEngineFeature f) const {
|
||||||
(f == kSupportsLoadingDuringStartup) ||
|
(f == kSupportsLoadingDuringStartup) ||
|
||||||
(f == kSupportsDeleteSave) ||
|
(f == kSupportsDeleteSave) ||
|
||||||
(f == kSavesSupportMetaInfo) ||
|
(f == kSavesSupportMetaInfo) ||
|
||||||
(f == kSavesSupportThumbnail);
|
(f == kSavesSupportThumbnail) ||
|
||||||
|
(f == kSimpleSavesNames);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Sherlock::SherlockEngine::hasFeature(EngineFeature f) const {
|
bool Sherlock::SherlockEngine::hasFeature(EngineFeature f) const {
|
||||||
|
@ -219,8 +218,6 @@ SaveStateList SherlockMetaEngine::listSaves(const char *target) const {
|
||||||
return Sherlock::SaveManager::getSavegameList(target);
|
return Sherlock::SaveManager::getSavegameList(target);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SherlockMetaEngine::simpleSaveNames() const { return true; }
|
|
||||||
|
|
||||||
int SherlockMetaEngine::getMaximumSaveSlot() const {
|
int SherlockMetaEngine::getMaximumSaveSlot() const {
|
||||||
return MAX_SAVEGAME_SLOTS;
|
return MAX_SAVEGAME_SLOTS;
|
||||||
}
|
}
|
||||||
|
|
|
@ -84,7 +84,6 @@ public:
|
||||||
virtual Common::Error createInstance(OSystem *syst, Engine **engine) const;
|
virtual Common::Error createInstance(OSystem *syst, Engine **engine) const;
|
||||||
|
|
||||||
virtual SaveStateList listSaves(const char *target) const;
|
virtual SaveStateList listSaves(const char *target) const;
|
||||||
virtual bool simpleSaveNames() const;
|
|
||||||
virtual int getMaximumSaveSlot() const;
|
virtual int getMaximumSaveSlot() const;
|
||||||
virtual void removeSaveState(const char *target, int slot) const;
|
virtual void removeSaveState(const char *target, int slot) const;
|
||||||
};
|
};
|
||||||
|
@ -248,8 +247,6 @@ SaveStateList SkyMetaEngine::listSaves(const char *target) const {
|
||||||
return saveList;
|
return saveList;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SkyMetaEngine::simpleSaveNames() const { return false; }
|
|
||||||
|
|
||||||
int SkyMetaEngine::getMaximumSaveSlot() const { return MAX_SAVE_GAMES; }
|
int SkyMetaEngine::getMaximumSaveSlot() const { return MAX_SAVE_GAMES; }
|
||||||
|
|
||||||
void SkyMetaEngine::removeSaveState(const char *target, int slot) const {
|
void SkyMetaEngine::removeSaveState(const char *target, int slot) const {
|
||||||
|
|
|
@ -91,7 +91,6 @@ public:
|
||||||
virtual GameDescriptor findGame(const char *gameid) const;
|
virtual GameDescriptor findGame(const char *gameid) const;
|
||||||
virtual GameList detectGames(const Common::FSList &fslist) const;
|
virtual GameList detectGames(const Common::FSList &fslist) const;
|
||||||
virtual SaveStateList listSaves(const char *target) const;
|
virtual SaveStateList listSaves(const char *target) const;
|
||||||
virtual bool simpleSaveNames() const;
|
|
||||||
virtual int getMaximumSaveSlot() const;
|
virtual int getMaximumSaveSlot() const;
|
||||||
virtual void removeSaveState(const char *target, int slot) const;
|
virtual void removeSaveState(const char *target, int slot) const;
|
||||||
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
||||||
|
@ -264,8 +263,6 @@ SaveStateList SwordMetaEngine::listSaves(const char *target) const {
|
||||||
return saveList;
|
return saveList;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SwordMetaEngine::simpleSaveNames() const { return false; }
|
|
||||||
|
|
||||||
int SwordMetaEngine::getMaximumSaveSlot() const { return 999; }
|
int SwordMetaEngine::getMaximumSaveSlot() const { return 999; }
|
||||||
|
|
||||||
void SwordMetaEngine::removeSaveState(const char *target, int slot) const {
|
void SwordMetaEngine::removeSaveState(const char *target, int slot) const {
|
||||||
|
|
|
@ -97,7 +97,6 @@ public:
|
||||||
virtual GameDescriptor findGame(const char *gameid) const;
|
virtual GameDescriptor findGame(const char *gameid) const;
|
||||||
virtual GameList detectGames(const Common::FSList &fslist) const;
|
virtual GameList detectGames(const Common::FSList &fslist) const;
|
||||||
virtual SaveStateList listSaves(const char *target) const;
|
virtual SaveStateList listSaves(const char *target) const;
|
||||||
virtual bool simpleSaveNames() const;
|
|
||||||
virtual int getMaximumSaveSlot() const;
|
virtual int getMaximumSaveSlot() const;
|
||||||
virtual void removeSaveState(const char *target, int slot) const;
|
virtual void removeSaveState(const char *target, int slot) const;
|
||||||
|
|
||||||
|
@ -108,7 +107,8 @@ bool Sword2MetaEngine::hasFeature(MetaEngineFeature f) const {
|
||||||
return
|
return
|
||||||
(f == kSupportsListSaves) ||
|
(f == kSupportsListSaves) ||
|
||||||
(f == kSupportsLoadingDuringStartup) ||
|
(f == kSupportsLoadingDuringStartup) ||
|
||||||
(f == kSupportsDeleteSave);
|
(f == kSupportsDeleteSave) ||
|
||||||
|
(f == kSimpleSavesNames);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Sword2::Sword2Engine::hasFeature(EngineFeature f) const {
|
bool Sword2::Sword2Engine::hasFeature(EngineFeature f) const {
|
||||||
|
@ -257,8 +257,6 @@ SaveStateList Sword2MetaEngine::listSaves(const char *target) const {
|
||||||
return saveList;
|
return saveList;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Sword2MetaEngine::simpleSaveNames() const { return true; }
|
|
||||||
|
|
||||||
int Sword2MetaEngine::getMaximumSaveSlot() const { return 999; }
|
int Sword2MetaEngine::getMaximumSaveSlot() const { return 999; }
|
||||||
|
|
||||||
void Sword2MetaEngine::removeSaveState(const char *target, int slot) const {
|
void Sword2MetaEngine::removeSaveState(const char *target, int slot) const {
|
||||||
|
|
|
@ -69,7 +69,6 @@ public:
|
||||||
virtual const ExtraGuiOptions getExtraGuiOptions(const Common::String &target) const;
|
virtual const ExtraGuiOptions getExtraGuiOptions(const Common::String &target) const;
|
||||||
virtual int getMaximumSaveSlot() const { return Sword25::PersistenceService::getSlotCount(); }
|
virtual int getMaximumSaveSlot() const { return Sword25::PersistenceService::getSlotCount(); }
|
||||||
virtual SaveStateList listSaves(const char *target) const;
|
virtual SaveStateList listSaves(const char *target) const;
|
||||||
virtual bool simpleSaveNames() const;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
bool Sword25MetaEngine::createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const {
|
bool Sword25MetaEngine::createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const {
|
||||||
|
@ -110,8 +109,6 @@ SaveStateList Sword25MetaEngine::listSaves(const char *target) const {
|
||||||
return saveList;
|
return saveList;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Sword25MetaEngine::simpleSaveNames() const { return false; }
|
|
||||||
|
|
||||||
#if PLUGIN_ENABLED_DYNAMIC(SWORD25)
|
#if PLUGIN_ENABLED_DYNAMIC(SWORD25)
|
||||||
REGISTER_PLUGIN_DYNAMIC(SWORD25, PLUGIN_TYPE_ENGINE, Sword25MetaEngine);
|
REGISTER_PLUGIN_DYNAMIC(SWORD25, PLUGIN_TYPE_ENGINE, Sword25MetaEngine);
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -149,8 +149,6 @@ public:
|
||||||
return saveList;
|
return saveList;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual bool simpleSaveNames() const { return false; }
|
|
||||||
|
|
||||||
virtual int getMaximumSaveSlot() const {
|
virtual int getMaximumSaveSlot() const {
|
||||||
return MAX_SAVES - 1;
|
return MAX_SAVES - 1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -101,7 +101,6 @@ public:
|
||||||
|
|
||||||
virtual bool hasFeature(MetaEngineFeature f) const;
|
virtual bool hasFeature(MetaEngineFeature f) const;
|
||||||
virtual SaveStateList listSaves(const char *target) const;
|
virtual SaveStateList listSaves(const char *target) const;
|
||||||
virtual bool simpleSaveNames() const;
|
|
||||||
virtual int getMaximumSaveSlot() const;
|
virtual int getMaximumSaveSlot() const;
|
||||||
virtual void removeSaveState(const char *target, int slot) const;
|
virtual void removeSaveState(const char *target, int slot) const;
|
||||||
};
|
};
|
||||||
|
@ -110,7 +109,8 @@ bool TinselMetaEngine::hasFeature(MetaEngineFeature f) const {
|
||||||
return
|
return
|
||||||
(f == kSupportsListSaves) ||
|
(f == kSupportsListSaves) ||
|
||||||
(f == kSupportsLoadingDuringStartup) ||
|
(f == kSupportsLoadingDuringStartup) ||
|
||||||
(f == kSupportsDeleteSave);
|
(f == kSupportsDeleteSave) ||
|
||||||
|
(f == kSimpleSavesNames);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Tinsel::TinselEngine::hasFeature(EngineFeature f) const {
|
bool Tinsel::TinselEngine::hasFeature(EngineFeature f) const {
|
||||||
|
@ -165,8 +165,6 @@ SaveStateList TinselMetaEngine::listSaves(const char *target) const {
|
||||||
return saveList;
|
return saveList;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool TinselMetaEngine::simpleSaveNames() const { return true; }
|
|
||||||
|
|
||||||
bool TinselMetaEngine::createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const {
|
bool TinselMetaEngine::createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const {
|
||||||
const Tinsel::TinselGameDescription *gd = (const Tinsel::TinselGameDescription *)desc;
|
const Tinsel::TinselGameDescription *gd = (const Tinsel::TinselGameDescription *)desc;
|
||||||
if (gd) {
|
if (gd) {
|
||||||
|
|
|
@ -221,7 +221,6 @@ public:
|
||||||
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
||||||
virtual const ExtraGuiOptions getExtraGuiOptions(const Common::String &target) const;
|
virtual const ExtraGuiOptions getExtraGuiOptions(const Common::String &target) const;
|
||||||
SaveStateList listSaves(const char *target) const;
|
SaveStateList listSaves(const char *target) const;
|
||||||
virtual bool simpleSaveNames() const;
|
|
||||||
virtual int getMaximumSaveSlot() const;
|
virtual int getMaximumSaveSlot() const;
|
||||||
void removeSaveState(const char *target, int slot) const;
|
void removeSaveState(const char *target, int slot) const;
|
||||||
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
||||||
|
@ -235,7 +234,8 @@ bool ToltecsMetaEngine::hasFeature(MetaEngineFeature f) const {
|
||||||
(f == kSavesSupportMetaInfo) ||
|
(f == kSavesSupportMetaInfo) ||
|
||||||
(f == kSavesSupportThumbnail) ||
|
(f == kSavesSupportThumbnail) ||
|
||||||
(f == kSavesSupportCreationDate) ||
|
(f == kSavesSupportCreationDate) ||
|
||||||
(f == kSavesSupportPlayTime);
|
(f == kSavesSupportPlayTime) ||
|
||||||
|
(f == kSimpleSavesNames);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Toltecs::ToltecsEngine::hasFeature(EngineFeature f) const {
|
bool Toltecs::ToltecsEngine::hasFeature(EngineFeature f) const {
|
||||||
|
@ -289,8 +289,6 @@ SaveStateList ToltecsMetaEngine::listSaves(const char *target) const {
|
||||||
return saveList;
|
return saveList;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ToltecsMetaEngine::simpleSaveNames() const { return true; }
|
|
||||||
|
|
||||||
int ToltecsMetaEngine::getMaximumSaveSlot() const {
|
int ToltecsMetaEngine::getMaximumSaveSlot() const {
|
||||||
return 999;
|
return 999;
|
||||||
}
|
}
|
||||||
|
|
|
@ -82,7 +82,6 @@ public:
|
||||||
virtual bool hasFeature(MetaEngineFeature f) const;
|
virtual bool hasFeature(MetaEngineFeature f) const;
|
||||||
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
||||||
virtual SaveStateList listSaves(const char *target) const;
|
virtual SaveStateList listSaves(const char *target) const;
|
||||||
virtual bool simpleSaveNames() const;
|
|
||||||
virtual int getMaximumSaveSlot() const;
|
virtual int getMaximumSaveSlot() const;
|
||||||
virtual void removeSaveState(const char *target, int slot) const;
|
virtual void removeSaveState(const char *target, int slot) const;
|
||||||
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
||||||
|
@ -142,8 +141,6 @@ SaveStateList TonyMetaEngine::listSaves(const char *target) const {
|
||||||
return saveList;
|
return saveList;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool TonyMetaEngine::simpleSaveNames() const { return false; }
|
|
||||||
|
|
||||||
int TonyMetaEngine::getMaximumSaveSlot() const {
|
int TonyMetaEngine::getMaximumSaveSlot() const {
|
||||||
return 99;
|
return 99;
|
||||||
}
|
}
|
||||||
|
|
|
@ -148,7 +148,6 @@ public:
|
||||||
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
||||||
virtual int getMaximumSaveSlot() const;
|
virtual int getMaximumSaveSlot() const;
|
||||||
virtual SaveStateList listSaves(const char *target) const;
|
virtual SaveStateList listSaves(const char *target) const;
|
||||||
virtual bool simpleSaveNames() const;
|
|
||||||
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
||||||
virtual void removeSaveState(const char *target, int slot) const;
|
virtual void removeSaveState(const char *target, int slot) const;
|
||||||
};
|
};
|
||||||
|
@ -160,7 +159,8 @@ bool ToonMetaEngine::hasFeature(MetaEngineFeature f) const {
|
||||||
(f == kSupportsDeleteSave) ||
|
(f == kSupportsDeleteSave) ||
|
||||||
(f == kSavesSupportMetaInfo) ||
|
(f == kSavesSupportMetaInfo) ||
|
||||||
(f == kSavesSupportThumbnail) ||
|
(f == kSavesSupportThumbnail) ||
|
||||||
(f == kSavesSupportCreationDate);
|
(f == kSavesSupportCreationDate) ||
|
||||||
|
(f == kSimpleSavesNames);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ToonMetaEngine::removeSaveState(const char *target, int slot) const {
|
void ToonMetaEngine::removeSaveState(const char *target, int slot) const {
|
||||||
|
@ -213,8 +213,6 @@ SaveStateList ToonMetaEngine::listSaves(const char *target) const {
|
||||||
return saveList;
|
return saveList;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ToonMetaEngine::simpleSaveNames() const { return true; }
|
|
||||||
|
|
||||||
SaveStateDescriptor ToonMetaEngine::querySaveMetaInfos(const char *target, int slot) const {
|
SaveStateDescriptor ToonMetaEngine::querySaveMetaInfos(const char *target, int slot) const {
|
||||||
Common::String fileName = Common::String::format("%s.%03d", target, slot);
|
Common::String fileName = Common::String::format("%s.%03d", target, slot);
|
||||||
Common::InSaveFile *file = g_system->getSavefileManager()->openForLoading(fileName);
|
Common::InSaveFile *file = g_system->getSavefileManager()->openForLoading(fileName);
|
||||||
|
|
|
@ -155,7 +155,6 @@ public:
|
||||||
virtual bool hasFeature(MetaEngineFeature f) const;
|
virtual bool hasFeature(MetaEngineFeature f) const;
|
||||||
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
||||||
virtual SaveStateList listSaves(const char *target) const;
|
virtual SaveStateList listSaves(const char *target) const;
|
||||||
virtual bool simpleSaveNames() const;
|
|
||||||
virtual int getMaximumSaveSlot() const;
|
virtual int getMaximumSaveSlot() const;
|
||||||
virtual void removeSaveState(const char *target, int slot) const;
|
virtual void removeSaveState(const char *target, int slot) const;
|
||||||
};
|
};
|
||||||
|
@ -211,8 +210,6 @@ SaveStateList ToucheMetaEngine::listSaves(const char *target) const {
|
||||||
return saveList;
|
return saveList;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ToucheMetaEngine::simpleSaveNames() const { return false; }
|
|
||||||
|
|
||||||
int ToucheMetaEngine::getMaximumSaveSlot() const {
|
int ToucheMetaEngine::getMaximumSaveSlot() const {
|
||||||
return Touche::kMaxSaveStates - 1;
|
return Touche::kMaxSaveStates - 1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -95,6 +95,7 @@ public:
|
||||||
case kSavesSupportThumbnail:
|
case kSavesSupportThumbnail:
|
||||||
case kSavesSupportCreationDate:
|
case kSavesSupportCreationDate:
|
||||||
case kSavesSupportPlayTime:
|
case kSavesSupportPlayTime:
|
||||||
|
case kSimpleSavesNames:
|
||||||
return true;
|
return true;
|
||||||
default:
|
default:
|
||||||
return false;
|
return false;
|
||||||
|
@ -145,8 +146,6 @@ public:
|
||||||
return saveList;
|
return saveList;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual bool simpleSaveNames() const { return true; }
|
|
||||||
|
|
||||||
virtual int getMaximumSaveSlot() const {
|
virtual int getMaximumSaveSlot() const {
|
||||||
return MAX_SAVES - 1;
|
return MAX_SAVES - 1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -187,8 +187,6 @@ public:
|
||||||
return saveList;
|
return saveList;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual bool simpleSaveNames() const { return false; }
|
|
||||||
|
|
||||||
virtual int getMaximumSaveSlot() const {
|
virtual int getMaximumSaveSlot() const {
|
||||||
return Tucker::kLastSaveSlot;
|
return Tucker::kLastSaveSlot;
|
||||||
}
|
}
|
||||||
|
|
|
@ -81,7 +81,6 @@ public:
|
||||||
virtual bool hasFeature(MetaEngineFeature f) const;
|
virtual bool hasFeature(MetaEngineFeature f) const;
|
||||||
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
||||||
virtual SaveStateList listSaves(const char *target) const;
|
virtual SaveStateList listSaves(const char *target) const;
|
||||||
virtual bool simpleSaveNames() const;
|
|
||||||
virtual int getMaximumSaveSlot() const;
|
virtual int getMaximumSaveSlot() const;
|
||||||
virtual void removeSaveState(const char *target, int slot) const;
|
virtual void removeSaveState(const char *target, int slot) const;
|
||||||
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
||||||
|
@ -93,7 +92,8 @@ bool VoyeurMetaEngine::hasFeature(MetaEngineFeature f) const {
|
||||||
(f == kSupportsLoadingDuringStartup) ||
|
(f == kSupportsLoadingDuringStartup) ||
|
||||||
(f == kSupportsDeleteSave) ||
|
(f == kSupportsDeleteSave) ||
|
||||||
(f == kSavesSupportMetaInfo) ||
|
(f == kSavesSupportMetaInfo) ||
|
||||||
(f == kSavesSupportThumbnail);
|
(f == kSavesSupportThumbnail) ||
|
||||||
|
(f == kSimpleSavesNames);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Voyeur::VoyeurEngine::hasFeature(EngineFeature f) const {
|
bool Voyeur::VoyeurEngine::hasFeature(EngineFeature f) const {
|
||||||
|
@ -144,8 +144,6 @@ SaveStateList VoyeurMetaEngine::listSaves(const char *target) const {
|
||||||
return saveList;
|
return saveList;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool VoyeurMetaEngine::simpleSaveNames() const { return true; }
|
|
||||||
|
|
||||||
int VoyeurMetaEngine::getMaximumSaveSlot() const {
|
int VoyeurMetaEngine::getMaximumSaveSlot() const {
|
||||||
return MAX_SAVES;
|
return MAX_SAVES;
|
||||||
}
|
}
|
||||||
|
|
|
@ -70,7 +70,6 @@ public:
|
||||||
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
||||||
virtual bool hasFeature(MetaEngineFeature f) const;
|
virtual bool hasFeature(MetaEngineFeature f) const;
|
||||||
virtual SaveStateList listSaves(const char *target) const;
|
virtual SaveStateList listSaves(const char *target) const;
|
||||||
virtual bool simpleSaveNames() const;
|
|
||||||
virtual int getMaximumSaveSlot() const;
|
virtual int getMaximumSaveSlot() const;
|
||||||
virtual void removeSaveState(const char *target, int slot) const;
|
virtual void removeSaveState(const char *target, int slot) const;
|
||||||
};
|
};
|
||||||
|
@ -79,7 +78,8 @@ bool WageMetaEngine::hasFeature(MetaEngineFeature f) const {
|
||||||
return
|
return
|
||||||
(f == kSupportsListSaves) ||
|
(f == kSupportsListSaves) ||
|
||||||
(f == kSupportsLoadingDuringStartup) ||
|
(f == kSupportsLoadingDuringStartup) ||
|
||||||
(f == kSupportsDeleteSave);
|
(f == kSupportsDeleteSave) ||
|
||||||
|
(f == kSimpleSavesNames);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Wage::WageEngine::hasFeature(EngineFeature f) const {
|
bool Wage::WageEngine::hasFeature(EngineFeature f) const {
|
||||||
|
@ -137,8 +137,6 @@ SaveStateList WageMetaEngine::listSaves(const char *target) const {
|
||||||
return saveList;
|
return saveList;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool WageMetaEngine::simpleSaveNames() const { return true; }
|
|
||||||
|
|
||||||
int WageMetaEngine::getMaximumSaveSlot() const { return 999; }
|
int WageMetaEngine::getMaximumSaveSlot() const { return 999; }
|
||||||
|
|
||||||
void WageMetaEngine::removeSaveState(const char *target, int slot) const {
|
void WageMetaEngine::removeSaveState(const char *target, int slot) const {
|
||||||
|
|
|
@ -164,8 +164,6 @@ public:
|
||||||
return saves;
|
return saves;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual bool simpleSaveNames() const { return false; }
|
|
||||||
|
|
||||||
int getMaximumSaveSlot() const {
|
int getMaximumSaveSlot() const {
|
||||||
return 100;
|
return 100;
|
||||||
}
|
}
|
||||||
|
|
|
@ -75,7 +75,6 @@ public:
|
||||||
virtual bool hasFeature(MetaEngineFeature f) const;
|
virtual bool hasFeature(MetaEngineFeature f) const;
|
||||||
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
||||||
SaveStateList listSaves(const char *target) const;
|
SaveStateList listSaves(const char *target) const;
|
||||||
virtual bool simpleSaveNames() const;
|
|
||||||
virtual int getMaximumSaveSlot() const;
|
virtual int getMaximumSaveSlot() const;
|
||||||
void removeSaveState(const char *target, int slot) const;
|
void removeSaveState(const char *target, int slot) const;
|
||||||
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
|
||||||
|
@ -88,7 +87,8 @@ bool ZVisionMetaEngine::hasFeature(MetaEngineFeature f) const {
|
||||||
(f == kSupportsDeleteSave) ||
|
(f == kSupportsDeleteSave) ||
|
||||||
(f == kSavesSupportMetaInfo) ||
|
(f == kSavesSupportMetaInfo) ||
|
||||||
(f == kSavesSupportThumbnail) ||
|
(f == kSavesSupportThumbnail) ||
|
||||||
(f == kSavesSupportCreationDate);
|
(f == kSavesSupportCreationDate) ||
|
||||||
|
(f == kSimpleSavesNames);
|
||||||
//(f == kSavesSupportPlayTime);
|
//(f == kSavesSupportPlayTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -160,8 +160,6 @@ SaveStateList ZVisionMetaEngine::listSaves(const char *target) const {
|
||||||
return saveList;
|
return saveList;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ZVisionMetaEngine::simpleSaveNames() const { return true; }
|
|
||||||
|
|
||||||
int ZVisionMetaEngine::getMaximumSaveSlot() const {
|
int ZVisionMetaEngine::getMaximumSaveSlot() const {
|
||||||
return 999;
|
return 999;
|
||||||
}
|
}
|
||||||
|
|
|
@ -245,7 +245,7 @@ void SaveLoadChooserDialog::handleTickle() {
|
||||||
Common::Array<Common::String> files = CloudMan.getSyncingFiles();
|
Common::Array<Common::String> files = CloudMan.getSyncingFiles();
|
||||||
if (!files.empty()) {
|
if (!files.empty()) {
|
||||||
{
|
{
|
||||||
SaveLoadCloudSyncProgressDialog dialog(_metaEngine ? _metaEngine->simpleSaveNames() : false);
|
SaveLoadCloudSyncProgressDialog dialog(_metaEngine ? _metaEngine->hasFeature(MetaEngine::kSimpleSavesNames) : false);
|
||||||
CloudMan.setSyncTarget(&dialog);
|
CloudMan.setSyncTarget(&dialog);
|
||||||
int result = dialog.runModal();
|
int result = dialog.runModal();
|
||||||
if (result == kCancelSyncCmd) {
|
if (result == kCancelSyncCmd) {
|
||||||
|
@ -293,7 +293,7 @@ void SaveLoadChooserDialog::listSaves() {
|
||||||
|
|
||||||
#ifdef USE_LIBCURL
|
#ifdef USE_LIBCURL
|
||||||
//if there is Cloud support, add currently synced files as "locked" saves in the list
|
//if there is Cloud support, add currently synced files as "locked" saves in the list
|
||||||
if (_metaEngine->simpleSaveNames()) {
|
if (_metaEngine->hasFeature(MetaEngine::kSimpleSavesNames)) {
|
||||||
Common::String pattern = _target + ".###";
|
Common::String pattern = _target + ".###";
|
||||||
Common::Array<Common::String> files = CloudMan.getSyncingFiles(); //returns empty array if not syncing
|
Common::Array<Common::String> files = CloudMan.getSyncingFiles(); //returns empty array if not syncing
|
||||||
for (uint32 i = 0; i < files.size(); ++i) {
|
for (uint32 i = 0; i < files.size(); ++i) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue