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

Function SaveFileDone

src/saveload/saveload.cpp:2948–2958  ·  view source on GitHub ↗

Update the gui accordingly when saving is done and release locks on saveload. */

Source from the content-addressed store, hash-verified

2946
2947/** Update the gui accordingly when saving is done and release locks on saveload. */
2948static void SaveFileDone()
2949{
2950 SetMouseCursorBusy(false);
2951
2952 InvalidateWindowData(WC_STATUS_BAR, 0, SBI_SAVELOAD_FINISH);
2953 _sl.saveinprogress = false;
2954
2955#ifdef __EMSCRIPTEN__
2956 EM_ASM(if (window["openttd_syncfs"]) openttd_syncfs());
2957#endif
2958}
2959
2960/** Set the error message from outside of the actual loading/saving of the game (AfterLoadGame and friends) */
2961void SetSaveLoadError(StringID str)

Callers 2

SaveFileErrorFunction · 0.85
DoSaveFunction · 0.85

Calls 3

SetMouseCursorBusyFunction · 0.85
ifFunction · 0.85
InvalidateWindowDataFunction · 0.50

Tested by

no test coverage detected