private static void DisableRun() { Running = false; /* * if (Recording) { * controller.WriteInputs(); * } */ Recording = false; State = State.None; NextState = State.None; BindingHelper.RestorePlayerBindings(); Celeste.Mod.Core.CoreModule.Settings.UseKeyboardForTextInput = KbTextInput; Controller.ResetSpawn = null; if (ExportSyncData) { EndExport(); ExportSyncData = false; } LibTasHelper.EndExport(); EnforceLegal = false; AllowUnsafeInput = false; AnalogHelper.AnalogModeChange(AnalogueMode.Ignore); Hotkeys.ReleaseAllKeys(); RestoreSettings.TryRestore(); }