Commit b9dd91d
Revert PR DarthAffe#339 Corsair-specific changes; route via DeviceHelper again
Reverts the Corsair half of the Aytackydln merge (PR DarthAffe#339) back to
origin/Development. Drops the connection-state event refactor, the
CreateSingleChannelDevice / CreateCorsairDeviceChannel helpers, and
the direct IdGenerator.MakeUnique(typeof(...), ...) call sites — the
provider now goes through DeviceHelper.CreateDeviceName the way every
other provider does.
Reason: PR DarthAffe#339's CorsairRGBDeviceInfo.cs calls
IdGenerator.MakeUnique(object, string) directly, a signature that
only exists in our patched RGB.NET.Core. Downstream consumers
(Chromatics in particular) that load our RGB.NET.Devices.Corsair.dll
alongside an upstream RGB.NET.Core.dll throw MissingMethodException
on first device init — Sentry report traced to exactly this. Routing
the call through DeviceHelper keeps the MakeUnique resolution
internal to whichever Core assembly is loaded at runtime, so the
Corsair DLL no longer needs the patched Core to function.
The Core-level changes from PR DarthAffe#339 (RGBDeviceException catch in
Initialize, [MethodImpl(Synchronized)] on GetUpdateTrigger,
DeviceUpdateTrigger UpdateTask disposal reordering, and the
IdGenerator Assembly->object change shared with PR DarthAffe#338) are
intentionally kept — the OpenRGB provider still depends on the
IdGenerator change. If a similar Sentry report ever lands for
OpenRGB, the same revert recipe applies to RGB.NET.Devices.OpenRGB.
Files reverted to origin/Development:
- RGB.NET.Devices.Corsair/CorsairDeviceProvider.cs
- RGB.NET.Devices.Corsair/Generic/CorsairRGBDevice.cs
- RGB.NET.Devices.Corsair/Generic/CorsairRGBDeviceInfo.cs
- RGB.NET.Devices.Corsair/Generic/ICorsairRGBDevice.cs
- RGB.NET.Devices.Corsair/Native/_CUESDK.cs
- RGB.NET.Devices.Corsair/Native/_CorsairDeviceInfo.cs
Files deleted (added by PR DarthAffe#339):
- RGB.NET.Devices.Corsair/Enum/CorsairEventId.cs
- RGB.NET.Devices.Corsair/Native/_CorsairDeviceConnectionStatusChangedEvent.cs
- RGB.NET.Devices.Corsair/Native/_CorsairEvent.cs
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 9563781 commit b9dd91d
9 files changed
Lines changed: 179 additions & 374 deletions
File tree
- RGB.NET.Devices.Corsair
- Enum
- Generic
- Native
Large diffs are not rendered by default.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | 17 | | |
23 | 18 | | |
24 | 19 | | |
| |||
34 | 29 | | |
35 | 30 | | |
36 | 31 | | |
37 | | - | |
| 32 | + | |
38 | 33 | | |
39 | 34 | | |
40 | 35 | | |
41 | 36 | | |
42 | 37 | | |
43 | 38 | | |
44 | 39 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | 40 | | |
64 | 41 | | |
65 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
| 1 | + | |
5 | 2 | | |
6 | 3 | | |
7 | 4 | | |
| |||
36 | 33 | | |
37 | 34 | | |
38 | 35 | | |
39 | | - | |
| 36 | + | |
40 | 37 | | |
41 | 38 | | |
42 | 39 | | |
| |||
70 | 67 | | |
71 | 68 | | |
72 | 69 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
| 70 | + | |
81 | 71 | | |
82 | 72 | | |
83 | 73 | | |
| |||
96 | 86 | | |
97 | 87 | | |
98 | 88 | | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
| 89 | + | |
127 | 90 | | |
128 | 91 | | |
129 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | 10 | | |
13 | 11 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
| |||
51 | 50 | | |
52 | 51 | | |
53 | 52 | | |
54 | | - | |
55 | | - | |
| 53 | + | |
| 54 | + | |
56 | 55 | | |
57 | 56 | | |
58 | 57 | | |
59 | 58 | | |
60 | 59 | | |
61 | 60 | | |
62 | | - | |
63 | 61 | | |
64 | 62 | | |
65 | 63 | | |
| |||
74 | 72 | | |
75 | 73 | | |
76 | 74 | | |
77 | | - | |
| 75 | + | |
78 | 76 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
| 77 | + | |
| 78 | + | |
116 | 79 | | |
117 | 80 | | |
118 | 81 | | |
| |||
146 | 109 | | |
147 | 110 | | |
148 | 111 | | |
149 | | - | |
| 112 | + | |
150 | 113 | | |
151 | 114 | | |
152 | 115 | | |
| |||
155 | 118 | | |
156 | 119 | | |
157 | 120 | | |
158 | | - | |
159 | | - | |
160 | 121 | | |
161 | 122 | | |
162 | 123 | | |
| |||
209 | 170 | | |
210 | 171 | | |
211 | 172 | | |
212 | | - | |
| 173 | + | |
213 | 174 | | |
214 | 175 | | |
215 | 176 | | |
| |||
218 | 179 | | |
219 | 180 | | |
220 | 181 | | |
221 | | - | |
222 | | - | |
223 | 182 | | |
224 | 183 | | |
225 | 184 | | |
226 | 185 | | |
227 | 186 | | |
228 | 187 | | |
229 | | - | |
230 | 188 | | |
231 | 189 | | |
232 | 190 | | |
| |||
251 | 209 | | |
252 | 210 | | |
253 | 211 | | |
| 212 | + | |
254 | 213 | | |
255 | 214 | | |
256 | 215 | | |
| |||
273 | 232 | | |
274 | 233 | | |
275 | 234 | | |
276 | | - | |
| 235 | + | |
277 | 236 | | |
278 | 237 | | |
279 | | - | |
280 | | - | |
281 | | - | |
| 238 | + | |
282 | 239 | | |
283 | 240 | | |
284 | 241 | | |
| |||
Lines changed: 0 additions & 19 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
This file was deleted.
0 commit comments