COMMON: Introduce SaveFileManager::exists

Checks if a savefile with given name exists.

Implement on all backends.
This commit is contained in:
Orgad Shaneh 2021-08-16 23:37:19 +03:00 committed by Eugene Sandulenko
parent fb8f233ed7
commit a0c818bde6
6 changed files with 36 additions and 0 deletions

View file

@ -336,6 +336,10 @@ public:
}
Common::StringArray listSavefiles(const Common::String &pattern) override;
bool exists(const Common::String &filename) override {
return InVMSave().readSaveGame(filename.c_str());
}
};
void OutVMSave::finalize()