Update the gui accordingly when saving is done and release locks on saveload. */
| 2946 | |
| 2947 | /** Update the gui accordingly when saving is done and release locks on saveload. */ |
| 2948 | static 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) */ |
| 2961 | void SetSaveLoadError(StringID str) |
no test coverage detected