mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 22:56:36 +09:00
Avoid constructor overhead for realm RealmKeyBinding
parameterless constructor
This commit is contained in:
@ -92,13 +92,7 @@ namespace osu.Game.Input
|
||||
if (defaultsCount > existingCount)
|
||||
{
|
||||
// insert any defaults which are missing.
|
||||
realm.Add(defaultsForAction.Skip(existingCount).Select(k => new RealmKeyBinding
|
||||
{
|
||||
KeyCombinationString = k.KeyCombination.ToString(),
|
||||
ActionInt = (int)k.Action,
|
||||
RulesetName = rulesetName,
|
||||
Variant = variant
|
||||
}));
|
||||
realm.Add(defaultsForAction.Skip(existingCount).Select(k => new RealmKeyBinding(k.Action, k.KeyCombination, rulesetName, variant)));
|
||||
}
|
||||
else if (defaultsCount < existingCount)
|
||||
{
|
||||
|
Reference in New Issue
Block a user