MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / GetSaveLoadErrorType

Function GetSaveLoadErrorType

src/saveload/saveload.cpp:2967–2970  ·  view source on GitHub ↗

Return the appropriate initial string for an error depending on whether we are saving or loading. */

Source from the content-addressed store, hash-verified

2965
2966/** Return the appropriate initial string for an error depending on whether we are saving or loading. */
2967EncodedString GetSaveLoadErrorType()
2968{
2969 return GetEncodedString(_sl.action == SLA_SAVE ? STR_ERROR_GAME_SAVE_FAILED : STR_ERROR_GAME_LOAD_FAILED);
2970}
2971
2972/** Return the description of the error. **/
2973EncodedString GetSaveLoadErrorMessage()

Callers 4

SwitchToModeFunction · 0.85
SaveFileErrorFunction · 0.85
SaveFileToDiskFunction · 0.85
SaveOrLoadFunction · 0.85

Calls 1

GetEncodedStringFunction · 0.50

Tested by

no test coverage detected