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

Function ClearSaveLoadState

src/saveload/saveload.cpp:2930–2936  ·  view source on GitHub ↗

* Clear/free saveload state. */

Source from the content-addressed store, hash-verified

2928 * Clear/free saveload state.
2929 */
2930static inline void ClearSaveLoadState()
2931{
2932 _sl.dumper = nullptr;
2933 _sl.sf = nullptr;
2934 _sl.reader = nullptr;
2935 _sl.lf = nullptr;
2936}
2937
2938/** Update the gui accordingly when starting saving and set locks on saveload. */
2939static void SaveFileStart()

Callers 5

SaveFileToDiskFunction · 0.85
SaveWithFilterFunction · 0.85
DoLoadFunction · 0.85
LoadWithFilterFunction · 0.85
SaveOrLoadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected