OpenTTD Source
20241121-master-g67a0fccfad
|
A savegame name automatically numbered. More...
#include <fios.h>
Public Member Functions | |
FiosNumberedSaveName (const std::string &prefix) | |
Constructs FiosNumberedSaveName. More... | |
std::string | Filename () |
Generate a savegame name and number according to _settings_client.gui.max_num_autosaves. More... | |
std::string | Extension () |
Generate an extension for a savegame name. More... | |
Private Attributes | |
std::string | prefix |
int | number |
FiosNumberedSaveName::FiosNumberedSaveName | ( | const std::string & | prefix | ) |
Constructs FiosNumberedSaveName.
Initial number is the most recent save, or -1 if not found.
prefix | The prefix to use to generate a filename. |
< Static as the lambda needs access to it.
std::string FiosNumberedSaveName::Extension | ( | ) |
Generate an extension for a savegame name.
Definition at line 774 of file fios.cpp.
Referenced by DoAutoOrNetsave().
std::string FiosNumberedSaveName::Filename | ( | ) |
Generate a savegame name and number according to _settings_client.gui.max_num_autosaves.
Definition at line 764 of file fios.cpp.
References _settings_client, ClientSettings::gui, and GUISettings::max_num_autosaves.
Referenced by DoAutoOrNetsave().