mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-12-24 23:51:49 +01:00
Fixed index bug in hotplug routine
This commit is contained in:
parent
2778b01d9b
commit
1d238e8b8b
@ -326,14 +326,14 @@ namespace DS4Windows
|
|||||||
device.SerialChange += this.On_SerialChange;
|
device.SerialChange += this.On_SerialChange;
|
||||||
if (device.isValidSerial() && containsLinkedProfile(device.getMacAddress()))
|
if (device.isValidSerial() && containsLinkedProfile(device.getMacAddress()))
|
||||||
{
|
{
|
||||||
ProfilePath[i] = getLinkedProfile(device.getMacAddress());
|
ProfilePath[Index] = getLinkedProfile(device.getMacAddress());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ProfilePath[i] = OlderProfilePath[i];
|
ProfilePath[Index] = OlderProfilePath[Index];
|
||||||
}
|
}
|
||||||
|
|
||||||
LoadProfile(i, false, this, false, false);
|
LoadProfile(Index, false, this, false, false);
|
||||||
touchPad[Index] = new Mouse(Index, device);
|
touchPad[Index] = new Mouse(Index, device);
|
||||||
device.LightBarColor = getMainColor(Index);
|
device.LightBarColor = getMainColor(Index);
|
||||||
device.Report += this.On_Report;
|
device.Report += this.On_Report;
|
||||||
|
Loading…
Reference in New Issue
Block a user