mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-11 19:54:03 +00:00
ENGINES: Rename initSaveType() method (#6)
Rename method to match its purpose.
This commit is contained in:
parent
252fb66539
commit
142ad94149
@ -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();
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user