MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / SaveGameState

Method SaveGameState

src/Menu/SaveGameState.cpp:43–46  ·  view source on GitHub ↗

* Initializes all the elements in the Save Game screen. * @param game Pointer to the core game. * @param origin Game section that originated this state. * @param filename Name of the save file without extension. */

Source from the content-addressed store, hash-verified

41 * @param filename Name of the save file without extension.
42 */
43 SaveGameState::SaveGameState(Game *game, OptionsOrigin origin, const std::string &filename) : State(game), _origin(origin), _filename(filename), _type(SAVE_DEFAULT)
44{
45 buildUi();
46}
47
48/**
49 * Initializes all the elements in the Save Game screen.

Callers

nothing calls this directly

Calls 3

sanitizeFilenameFunction · 0.85
getSavedGameMethod · 0.80
getNameMethod · 0.45

Tested by

no test coverage detected