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

Function SetSaveLoadError

src/saveload/saveload.cpp:2961–2964  ·  view source on GitHub ↗

Set the error message from outside of the actual loading/saving of the game (AfterLoadGame and friends) */

Source from the content-addressed store, hash-verified

2959
2960/** Set the error message from outside of the actual loading/saving of the game (AfterLoadGame and friends) */
2961void SetSaveLoadError(StringID str)
2962{
2963 _sl.error_str = str;
2964}
2965
2966/** Return the appropriate initial string for an error depending on whether we are saving or loading. */
2967EncodedString GetSaveLoadErrorType()

Callers 2

AfterLoadGameFunction · 0.85
LoadOldSaveGameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected