mirror of
https://github.com/Pathoschild/SMAPI.git
synced 2026-10-12 02:08:51 +00:00
replace RemoveWhere extension with equivalent HashSet methods
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
# Release notes
|
||||
## Upcoming release
|
||||
* For players:
|
||||
* Improved performance.
|
||||
* Improved error message when a mod is blocked by Windows Smart App Control.
|
||||
|
||||
## 4.5.2
|
||||
|
||||
@@ -95,8 +95,8 @@ internal sealed class SInputState : InputState
|
||||
if (this.CustomPressedKeys.Count > 0 || this.CustomReleasedKeys.Count > 0)
|
||||
{
|
||||
// reset overrides that no longer apply
|
||||
this.CustomPressedKeys.RemoveWhere(key => reallyDown.Contains(key));
|
||||
this.CustomReleasedKeys.RemoveWhere(key => !reallyDown.Contains(key));
|
||||
this.CustomPressedKeys.ExceptWith(reallyDown);
|
||||
this.CustomReleasedKeys.IntersectWith(reallyDown);
|
||||
|
||||
// apply overrides
|
||||
if (this.ApplyOverrides(this.CustomPressedKeys, this.CustomReleasedKeys, controller, keyboard, mouse))
|
||||
|
||||
Reference in New Issue
Block a user