BASE: ENGINES: Change saveload code to adapt to the new MEC class.

- MEC: MetaEngineConnect.
- How do games handle save/load if MetaEngine (detection) is seperate from MetaEngineConnect (engine factory)?

- Most of the changes are quite similiar. ConfMan finds us the relevant MetaEngine, then simply use the new helpers from PluginMan.
- The new helpers will help convert a relevant MetaEngine into the other format or vice versa.
- Once the matching is complete, simply invoke functions by:
plugin->get<MetaEngineConnect>().engineMethod();
- Refer to previous commits to see the new class changes & notes.
This commit is contained in:
aryanrawlani28 2020-08-03 04:16:09 +05:30 committed by Eugene Sandulenko
parent 01efb65931
commit 73cc973ad7
7 changed files with 74 additions and 44 deletions

View file

@ -40,7 +40,7 @@ protected:
const U32String _buttonLabel;
const bool _saveMode;
void selectChooser(const MetaEngine &engine);
void selectChooser(const MetaEngineConnect &engine);
public:
SaveLoadChooser(const U32String &title, const U32String &buttonLabel, bool saveMode);
~SaveLoadChooser();