mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 13:50:13 +00:00
WAGE: Support extended save states
This commit is contained in:
parent
da98116a44
commit
b7b7808b37
@ -29,7 +29,7 @@
|
||||
#include "wage/wage.h"
|
||||
|
||||
namespace Wage {
|
||||
|
||||
|
||||
uint32 WageEngine::getFeatures() {
|
||||
return _gameDescription->flags;
|
||||
}
|
||||
@ -55,11 +55,8 @@ public:
|
||||
};
|
||||
|
||||
bool WageMetaEngine::hasFeature(MetaEngineFeature f) const {
|
||||
return
|
||||
(f == kSupportsListSaves) ||
|
||||
(f == kSupportsLoadingDuringStartup) ||
|
||||
(f == kSupportsDeleteSave) ||
|
||||
(f == kSimpleSavesNames);
|
||||
return checkExtendedSaves(f) ||
|
||||
(f == kSupportsLoadingDuringStartup);
|
||||
}
|
||||
|
||||
bool Wage::WageEngine::hasFeature(EngineFeature f) const {
|
||||
|
@ -363,6 +363,8 @@ int WageEngine::saveGame(const Common::String &fileName, const Common::String &d
|
||||
// so these would be the last 4 bytes of the file
|
||||
out->writeUint32BE(WAGEflag);
|
||||
|
||||
g_engine->getMetaEngine()->appendExtendedSave(out, g_engine->getTotalPlayTime(), description, fileName.contains("auto"));
|
||||
|
||||
out->finalize();
|
||||
if (out->err()) {
|
||||
warning("Can't write file '%s'. (Disk full?)", fileName.c_str());
|
||||
|
Loading…
Reference in New Issue
Block a user