diff options
Diffstat (limited to 'engines/mads/mads.cpp')
-rw-r--r-- | engines/mads/mads.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/mads/mads.cpp b/engines/mads/mads.cpp index 6f57b1df60..1df41ad3fd 100644 --- a/engines/mads/mads.cpp +++ b/engines/mads/mads.cpp @@ -130,4 +130,12 @@ bool MADSEngine::canSaveGameStateCurrently() { && _dialogs->_pendingDialog == DIALOG_NONE; } +/** +* Support method that generates a savegame name +* @param slot Slot number +*/ +Common::String MADSEngine::generateSaveName(int slot) { + return Common::String::format("%s.%03d", _targetName.c_str(), slot); +} + } // End of namespace MADS |