ENGINES: Use MetaEngine consistently for getting autosave slot

The autosave refactoring that was done in
7adad5aaf5 used g_engine for identifying the
autosave slot. This worked for in-game save/load, but doesn't fit when
called from the launcher.

Fix by passing MetaEngine to SaveStateDescriptor ctor and using it for this
query.

Amends 7adad5aaf5.
This commit is contained in:
Orgad Shaneh 2021-10-19 09:28:14 +03:00 committed by Eugene Sandulenko
parent 7399dced7b
commit fe104cc337
87 changed files with 182 additions and 180 deletions

View file

@ -56,7 +56,7 @@ public:
SaveStateList saveList;
for (uint32 i = 0; i < filenames.size(); i++)
saveList.push_back(SaveStateDescriptor(i, filenames[i]));
saveList.push_back(SaveStateDescriptor(this, i, filenames[i]));
return saveList;
}