Load Linked Profiles

Related to issue #1039
This commit is contained in:
Travis Nickles 2020-01-13 20:42:58 -06:00
parent 2b25e55611
commit 3074bc1b6e
2 changed files with 6 additions and 0 deletions

View File

@ -159,6 +159,7 @@ namespace DS4WinWPF
}
SetUICulture(DS4Windows.Global.UseLang);
DS4Windows.Global.LoadLinkedProfiles();
DS4Forms.MainWindow window = new DS4Forms.MainWindow(parser);
MainWindow = window;
window.Show();

View File

@ -490,10 +490,12 @@ namespace DS4Windows
if (device.isValidSerial() && containsLinkedProfile(device.getMacAddress()))
{
ProfilePath[i] = getLinkedProfile(device.getMacAddress());
Global.linkedProfileCheck[i] = true;
}
else
{
ProfilePath[i] = OlderProfilePath[i];
Global.linkedProfileCheck[i] = false;
}
LoadProfile(i, false, this, false, false);
@ -764,10 +766,12 @@ namespace DS4Windows
if (device.isValidSerial() && containsLinkedProfile(device.getMacAddress()))
{
ProfilePath[Index] = getLinkedProfile(device.getMacAddress());
Global.linkedProfileCheck[Index] = true;
}
else
{
ProfilePath[Index] = OlderProfilePath[Index];
Global.linkedProfileCheck[Index] = false;
}
LoadProfile(Index, false, this, false, false);
@ -1280,6 +1284,7 @@ namespace DS4Windows
inWarnMonitor[ind] = false;
useDInputOnly[ind] = true;
Global.activeOutDevType[ind] = OutContType.None;
Global.linkedProfileCheck[ind] = false;
/*uiContext?.Post(new SendOrPostCallback((state) =>
{
OnControllerRemoved(this, ind);