public static void LoadDefault() { CurrentBindings = DefaultBindings; LoadBindings?.Invoke(); Console.WriteLine("Loaded default bindings"); }
public static void Load() { try { CurrentBindings = SaveLoad.Load <CombinedBindingData>(SavePath); } catch (FileNotFoundException) { Console.WriteLine("No saved bindings. Loading default"); CurrentBindings = DefaultBindings; } LoadBindings?.Invoke(); Console.WriteLine("Loaded bindings"); }