GNAP: Fix hasFeature

This commit is contained in:
Strangerke 2016-04-12 06:57:12 +02:00 committed by Eugene Sandulenko
parent 558ab62fd7
commit 03027be392
2 changed files with 11 additions and 9 deletions

View File

@ -78,14 +78,21 @@ bool GnapMetaEngine::hasFeature(MetaEngineFeature f) const {
return
(f == kSupportsListSaves) ||
(f == kSupportsLoadingDuringStartup) ||
(f == kSupportsDeleteSave);
(f == kSupportsDeleteSave) ||
(f == kSavesSupportMetaInfo) ||
(f == kSavesSupportCreationDate);
#if 0
(f == kSavesSupportMetaInfo) ||
(f == kSavesSupportThumbnail) ||
(f == kSavesSupportCreationDate);
(f == kSavesSupportThumbnail) ||
#endif
}
bool Gnap::GnapEngine::hasFeature(EngineFeature f) const {
return
(f == kSupportsRTL) ||
(f == kSupportsLoadingDuringRuntime) ||
(f == kSupportsSavingDuringRuntime);
}
void GnapMetaEngine::removeSaveState(const char *target, int slot) const {
Common::String fileName = Common::String::format("%s.%03d", target, slot);
g_system->getSavefileManager()->removeSavefile(fileName);

View File

@ -221,11 +221,6 @@ Common::Error GnapEngine::run() {
return Common::kNoError;
}
bool GnapEngine::hasFeature(EngineFeature f) const {
return
false;
}
void GnapEngine::updateEvents() {
Common::Event event;