mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2025-12-13 01:58:30 +00:00
Fixed stupid formating in Cue-Natives
This commit is contained in:
parent
68488a7d18
commit
cedd220789
@ -40,45 +40,16 @@ namespace RGB.NET.Devices.Corsair.Native
|
|||||||
|
|
||||||
_dllHandle = LoadLibrary(dllPath);
|
_dllHandle = LoadLibrary(dllPath);
|
||||||
|
|
||||||
_corsairSetLedsColorsPointer =
|
_corsairSetLedsColorsPointer = (CorsairSetLedsColorsPointer)Marshal.GetDelegateForFunctionPointer(GetProcAddress(_dllHandle, "CorsairSetLedsColors"), typeof(CorsairSetLedsColorsPointer));
|
||||||
(CorsairSetLedsColorsPointer)
|
_corsairGetDeviceCountPointer = (CorsairGetDeviceCountPointer)Marshal.GetDelegateForFunctionPointer(GetProcAddress(_dllHandle, "CorsairGetDeviceCount"), typeof(CorsairGetDeviceCountPointer));
|
||||||
Marshal.GetDelegateForFunctionPointer(GetProcAddress(_dllHandle, "CorsairSetLedsColors"),
|
_corsairGetDeviceInfoPointer = (CorsairGetDeviceInfoPointer)Marshal.GetDelegateForFunctionPointer(GetProcAddress(_dllHandle, "CorsairGetDeviceInfo"), typeof(CorsairGetDeviceInfoPointer));
|
||||||
typeof(CorsairSetLedsColorsPointer));
|
_corsairGetLedPositionsPointer = (CorsairGetLedPositionsPointer)Marshal.GetDelegateForFunctionPointer(GetProcAddress(_dllHandle, "CorsairGetLedPositions"), typeof(CorsairGetLedPositionsPointer));
|
||||||
_corsairGetDeviceCountPointer =
|
_corsairGetLedPositionsByDeviceIndexPointer = (CorsairGetLedPositionsByDeviceIndexPointer)Marshal.GetDelegateForFunctionPointer(GetProcAddress(_dllHandle, "CorsairGetLedPositionsByDeviceIndex"), typeof(CorsairGetLedPositionsByDeviceIndexPointer));
|
||||||
(CorsairGetDeviceCountPointer)
|
_corsairGetLedIdForKeyNamePointer = (CorsairGetLedIdForKeyNamePointer)Marshal.GetDelegateForFunctionPointer(GetProcAddress(_dllHandle, "CorsairGetLedIdForKeyName"), typeof(CorsairGetLedIdForKeyNamePointer));
|
||||||
Marshal.GetDelegateForFunctionPointer(GetProcAddress(_dllHandle, "CorsairGetDeviceCount"),
|
_corsairRequestControlPointer = (CorsairRequestControlPointer)Marshal.GetDelegateForFunctionPointer(GetProcAddress(_dllHandle, "CorsairRequestControl"), typeof(CorsairRequestControlPointer));
|
||||||
typeof(CorsairGetDeviceCountPointer));
|
_corsairReleaseControlPointer = (CorsairReleaseControlPointer)Marshal.GetDelegateForFunctionPointer(GetProcAddress(_dllHandle, "CorsairReleaseControl"), typeof(CorsairReleaseControlPointer));
|
||||||
_corsairGetDeviceInfoPointer =
|
_corsairPerformProtocolHandshakePointer = (CorsairPerformProtocolHandshakePointer)Marshal.GetDelegateForFunctionPointer(GetProcAddress(_dllHandle, "CorsairPerformProtocolHandshake"), typeof(CorsairPerformProtocolHandshakePointer));
|
||||||
(CorsairGetDeviceInfoPointer)
|
_corsairGetLastErrorPointer = (CorsairGetLastErrorPointer)Marshal.GetDelegateForFunctionPointer(GetProcAddress(_dllHandle, "CorsairGetLastError"), typeof(CorsairGetLastErrorPointer));
|
||||||
Marshal.GetDelegateForFunctionPointer(GetProcAddress(_dllHandle, "CorsairGetDeviceInfo"),
|
|
||||||
typeof(CorsairGetDeviceInfoPointer));
|
|
||||||
_corsairGetLedPositionsPointer =
|
|
||||||
(CorsairGetLedPositionsPointer)
|
|
||||||
Marshal.GetDelegateForFunctionPointer(GetProcAddress(_dllHandle, "CorsairGetLedPositions"),
|
|
||||||
typeof(CorsairGetLedPositionsPointer));
|
|
||||||
_corsairGetLedPositionsByDeviceIndexPointer =
|
|
||||||
(CorsairGetLedPositionsByDeviceIndexPointer)
|
|
||||||
Marshal.GetDelegateForFunctionPointer(GetProcAddress(_dllHandle, "CorsairGetLedPositionsByDeviceIndex"),
|
|
||||||
typeof(CorsairGetLedPositionsByDeviceIndexPointer));
|
|
||||||
_corsairGetLedIdForKeyNamePointer =
|
|
||||||
(CorsairGetLedIdForKeyNamePointer)
|
|
||||||
Marshal.GetDelegateForFunctionPointer(GetProcAddress(_dllHandle, "CorsairGetLedIdForKeyName"),
|
|
||||||
typeof(CorsairGetLedIdForKeyNamePointer));
|
|
||||||
_corsairRequestControlPointer =
|
|
||||||
(CorsairRequestControlPointer)
|
|
||||||
Marshal.GetDelegateForFunctionPointer(GetProcAddress(_dllHandle, "CorsairRequestControl"),
|
|
||||||
typeof(CorsairRequestControlPointer));
|
|
||||||
_corsairReleaseControlPointer =
|
|
||||||
(CorsairReleaseControlPointer)
|
|
||||||
Marshal.GetDelegateForFunctionPointer(GetProcAddress(_dllHandle, "CorsairReleaseControl"),
|
|
||||||
typeof(CorsairReleaseControlPointer));
|
|
||||||
_corsairPerformProtocolHandshakePointer =
|
|
||||||
(CorsairPerformProtocolHandshakePointer)
|
|
||||||
Marshal.GetDelegateForFunctionPointer(GetProcAddress(_dllHandle, "CorsairPerformProtocolHandshake"),
|
|
||||||
typeof(CorsairPerformProtocolHandshakePointer));
|
|
||||||
_corsairGetLastErrorPointer =
|
|
||||||
(CorsairGetLastErrorPointer)
|
|
||||||
Marshal.GetDelegateForFunctionPointer(GetProcAddress(_dllHandle, "CorsairGetLastError"), typeof(CorsairGetLastErrorPointer));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void UnloadCUESDK()
|
private static void UnloadCUESDK()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user