ScummVM API documentation
GUI::SaveLoadChooser Class Reference

Public Member Functions

 SaveLoadChooser (const Common::U32String &title, const Common::U32String &buttonLabel, bool saveMode)
 
int runModalWithCurrentTarget ()
 
int runModalWithMetaEngineAndTarget (const MetaEngine *engine, const Common::String &target)
 
const Common::U32String getResultString () const
 
Common::String createDefaultSaveDescription (const int slot) const
 

Protected Member Functions

void selectChooser (const MetaEngine *engine)
 

Protected Attributes

SaveLoadChooserDialog_impl
 
const Common::U32String _title
 
const Common::U32String _buttonLabel
 
const bool _saveMode
 

Member Function Documentation

◆ runModalWithCurrentTarget()

int GUI::SaveLoadChooser::runModalWithCurrentTarget ( )

Runs the save/load chooser with the currently active config manager domain as target.

Returns
The selcted save slot. -1 in case none is selected.

◆ createDefaultSaveDescription()

Common::String GUI::SaveLoadChooser::createDefaultSaveDescription ( const int  slot) const

Creates a default save description for the specified slot. Depending on the ScummVM configuration this might be a simple "Slot #" description or the current date and time.

TODO: This might not be the best place to put this, since engines not using this class might want to mimic the same behavior. Check whether moving this to a better place makes sense and find what this place would be.

Parameters
slotThe slot number (must be >= 0).
Returns
The slot description.

The documentation for this class was generated from the following file: