ENGINES: Rename initSaveType() method (#6)

Rename method to match its purpose.
This commit is contained in:
macca8 2022-11-04 17:44:13 +11:00 committed by Eugene Sandulenko
parent 252fb66539
commit 142ad94149
2 changed files with 4 additions and 4 deletions

View File

@ -36,15 +36,15 @@ SaveStateDescriptor::SaveStateDescriptor()
SaveStateDescriptor::SaveStateDescriptor(const MetaEngine *metaEngine, int slot, const Common::U32String &d)
: _slot(slot), _description(d), _isLocked(false), _playTimeMSecs(0), _saveType(kSaveTypeUndetermined) {
initSaveType(metaEngine);
initSaveSlot(metaEngine);
}
SaveStateDescriptor::SaveStateDescriptor(const MetaEngine *metaEngine, int slot, const Common::String &d)
: _slot(slot), _description(Common::U32String(d)), _isLocked(false), _playTimeMSecs(0), _saveType(kSaveTypeUndetermined) {
initSaveType(metaEngine);
initSaveSlot(metaEngine);
}
void SaveStateDescriptor::initSaveType(const MetaEngine *metaEngine) {
void SaveStateDescriptor::initSaveSlot(const MetaEngine *metaEngine) {
// Do not allow auto-save slot to be deleted or overwritten.
if (!metaEngine && g_engine)
metaEngine = g_engine->getMetaEngine();

View File

@ -61,7 +61,7 @@ private:
kSaveTypeAutosave
};
void initSaveType(const MetaEngine *metaEngine);
void initSaveSlot(const MetaEngine *metaEngine);
public:
SaveStateDescriptor();
SaveStateDescriptor(const MetaEngine *metaEngine, int slot, const Common::U32String &d);