Small correction for last commit
svn-id: r33910
This commit is contained in:
parent
9d3cdcb2da
commit
ad5b550df8
2 changed files with 10 additions and 2 deletions
|
@ -110,10 +110,16 @@ public:
|
|||
return "AGOS (C) Adventure Soft";
|
||||
}
|
||||
|
||||
virtual bool hasFeature(MetaEngineFeature f) const;
|
||||
virtual bool createInstance(OSystem *syst, Engine **engine, const Common::ADGameDescription *desc) const;
|
||||
virtual SaveStateList listSaves(const char *target) const;
|
||||
};
|
||||
|
||||
bool AgosMetaEngine::hasFeature(MetaEngineFeature f) const {
|
||||
return
|
||||
(f == kSupportsListSaves);
|
||||
}
|
||||
|
||||
bool AgosMetaEngine::createInstance(OSystem *syst, Engine **engine, const Common::ADGameDescription *desc) const {
|
||||
const AGOS::AGOSGameDescription *gd = (const AGOS::AGOSGameDescription *)desc;
|
||||
bool res = true;
|
||||
|
|
|
@ -955,7 +955,9 @@ void LauncherDialog::loadGame(int item) {
|
|||
if (plugin) {
|
||||
bool delSupport = (*plugin)->hasFeature(MetaEngine::kSupportsDeleteSave);
|
||||
|
||||
if ((*plugin)->hasFeature(MetaEngine::kSupportsListSaves)) {
|
||||
if ((*plugin)->hasFeature(MetaEngine::kSupportsListSaves) &&
|
||||
(*plugin)->hasFeature(MetaEngine::kSupportsDirectLoad))
|
||||
{
|
||||
do {
|
||||
Common::StringList saveNames = generateSavegameList(item, plugin);
|
||||
_loadDialog->setList(saveNames);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue