1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 21:02:54 +08:00

Fix all keybindings being reset every startup

This commit is contained in:
Dean Herbert 2017-10-16 14:12:08 +09:00
parent a5ccf12e4a
commit 5b6c331434

View File

@ -30,7 +30,8 @@ namespace osu.Game.Input
protected override void Prepare(bool reset = false) protected override void Prepare(bool reset = false)
{ {
Connection.Database.ExecuteSqlCommand("DELETE FROM KeyBinding"); if (reset)
Connection.Database.ExecuteSqlCommand("DELETE FROM KeyBinding");
} }
private void insertDefaults(IEnumerable<KeyBinding> defaults, int? rulesetId = null, int? variant = null) private void insertDefaults(IEnumerable<KeyBinding> defaults, int? rulesetId = null, int? variant = null)