Skip to content
This repository was archived by the owner on Jan 1, 2024. It is now read-only.

Commit 5001129

Browse files
committed
Fixed auto profile routine when a device does not exist for an input slot
1 parent 718b740 commit 5001129

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

DS4Windows/AutoProfileChecker.cs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,8 @@ public void Process()
124124
}
125125
else
126126
{
127-
device.HaltReportingRunAction(() =>
128-
{
129-
Global.LoadTempProfile(j, tempname, true, Program.rootHub); // j is controller index, i is filename
127+
Global.LoadTempProfile(j, tempname, true, Program.rootHub); // j is controller index, i is filename
130128
// if (LaunchProgram[j] != string.Empty) Process.Start(LaunchProgram[j]);
131-
});
132129
}
133130
}
134131
else
@@ -195,10 +192,7 @@ public void Process()
195192
}
196193
else
197194
{
198-
device.HaltReportingRunAction(() =>
199-
{
200-
Global.LoadProfile(j, false, Program.rootHub);
201-
});
195+
Global.LoadProfile(j, false, Program.rootHub);
202196
}
203197
}
204198
else

0 commit comments

Comments
 (0)