1
0
mirror of https://github.com/DarthAffe/RGB.NET.git synced 2025-12-13 10:08:31 +00:00

Compare commits

..

No commits in common. "51373e4441414568898bc2caf17ef8fff08c35a7" and "29e68ae8fe4c3d25ff4924ea9eb66e20ddee4d5d" have entirely different histories.

2 changed files with 2 additions and 14 deletions

View File

@ -28,7 +28,7 @@ jobs:
uses: PaulHatch/semantic-version@v4.0.3
with:
short_tags: false
format: "${major}.${minor}.${patch}"
format: "${major}.${minor}.${patch}-prerelease.${increment}"
- name: Restore dependencies
run: dotnet restore
- name: Build

View File

@ -47,9 +47,6 @@ internal static unsafe class _CUESDK
#region Properties & Fields
// ReSharper disable once NotAccessedField.Local - This is important, the delegate can be collected if it's not stored!
private static readonly CorsairSessionStateChangedHandler SESSION_STATE_CHANGED_CALLBACK;
internal static bool IsConnected => SesionState == CorsairSessionState.Connected;
internal static CorsairSessionState SesionState { get; private set; }
@ -61,15 +58,6 @@ internal static unsafe class _CUESDK
#endregion
#region Constructors
static _CUESDK()
{
SESSION_STATE_CHANGED_CALLBACK = CorsairSessionStateChangedCallback;
}
#endregion
#region Methods
private static void CorsairSessionStateChangedCallback(nint context, _CorsairSessionStateChanged eventdata)
@ -186,7 +174,7 @@ internal static unsafe class _CUESDK
{
if (_corsairConnectPtr == null) throw new RGBDeviceException("The Corsair-SDK is not initialized.");
if (IsConnected) throw new RGBDeviceException("The Corsair-SDK is already connected.");
return _corsairConnectPtr(SESSION_STATE_CHANGED_CALLBACK, 0);
return _corsairConnectPtr(CorsairSessionStateChangedCallback, 0);
}
internal static CorsairError CorsairGetSessionDetails(out _CorsairSessionDetails? details)