mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-12 21:38:38 +00:00
Plugins - Prevent crash when multiple plugins use HidSharp
This commit is contained in:
parent
220222d102
commit
d3d0ac9c9a
@ -39,6 +39,7 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Ben.Demystifier" Version="0.1.6" />
|
||||
<PackageReference Include="HidSharp" Version="2.1.0" />
|
||||
<PackageReference Include="Humanizer.Core" Version="2.8.26" />
|
||||
<PackageReference Include="LiteDB" Version="5.0.9" />
|
||||
<PackageReference Include="McMaster.NETCore.Plugins" Version="1.3.1" />
|
||||
|
||||
@ -12,6 +12,7 @@ using RGB.NET.Core;
|
||||
using Serilog;
|
||||
using Serilog.Events;
|
||||
using SkiaSharp;
|
||||
using HidSharp;
|
||||
using Module = Artemis.Core.Modules.Module;
|
||||
|
||||
namespace Artemis.Core.Services
|
||||
@ -78,6 +79,9 @@ namespace Artemis.Core.Services
|
||||
|
||||
AssemblyInformationalVersionAttribute? versionAttribute = typeof(CoreService).Assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>();
|
||||
_logger.Information("Initializing Artemis Core version {version}", versionAttribute?.InformationalVersion);
|
||||
// This should prevent a certain someone from removing HidSharp as an unused dependency as well
|
||||
_logger.Information("Forcing plugins to use HidSharp {hidSharpVersion}", Assembly.GetAssembly(typeof(HidDevice))!.GetName().Version);
|
||||
|
||||
ApplyLoggingLevel();
|
||||
|
||||
DeserializationLogger.Initialize(Kernel);
|
||||
|
||||
@ -12,6 +12,12 @@
|
||||
"System.Threading.Tasks.Extensions": "4.5.3"
|
||||
}
|
||||
},
|
||||
"HidSharp": {
|
||||
"type": "Direct",
|
||||
"requested": "[2.1.0, )",
|
||||
"resolved": "2.1.0",
|
||||
"contentHash": "UTdxWvbgp2xzT1Ajaa2va+Qi3oNHJPasYmVhbKI2VVdu1VYP6yUG+RikhsHvpD7iM0S8e8UYb5Qm/LTWxx9QAA=="
|
||||
},
|
||||
"Humanizer.Core": {
|
||||
"type": "Direct",
|
||||
"requested": "[2.8.26, )",
|
||||
|
||||
@ -142,6 +142,11 @@
|
||||
"System.Xml.XmlDocument": "4.3.0"
|
||||
}
|
||||
},
|
||||
"HidSharp": {
|
||||
"type": "Transitive",
|
||||
"resolved": "2.1.0",
|
||||
"contentHash": "UTdxWvbgp2xzT1Ajaa2va+Qi3oNHJPasYmVhbKI2VVdu1VYP6yUG+RikhsHvpD7iM0S8e8UYb5Qm/LTWxx9QAA=="
|
||||
},
|
||||
"LiteDB": {
|
||||
"type": "Transitive",
|
||||
"resolved": "5.0.9",
|
||||
@ -1305,6 +1310,7 @@
|
||||
"dependencies": {
|
||||
"Artemis.Storage": "1.0.0",
|
||||
"Ben.Demystifier": "0.1.6",
|
||||
"HidSharp": "2.1.0",
|
||||
"Humanizer.Core": "2.8.26",
|
||||
"LiteDB": "5.0.9",
|
||||
"McMaster.NETCore.Plugins": "1.3.1",
|
||||
|
||||
@ -195,6 +195,11 @@
|
||||
"System.Xml.XmlDocument": "4.3.0"
|
||||
}
|
||||
},
|
||||
"HidSharp": {
|
||||
"type": "Transitive",
|
||||
"resolved": "2.1.0",
|
||||
"contentHash": "UTdxWvbgp2xzT1Ajaa2va+Qi3oNHJPasYmVhbKI2VVdu1VYP6yUG+RikhsHvpD7iM0S8e8UYb5Qm/LTWxx9QAA=="
|
||||
},
|
||||
"LiteDB": {
|
||||
"type": "Transitive",
|
||||
"resolved": "5.0.9",
|
||||
@ -1362,6 +1367,7 @@
|
||||
"dependencies": {
|
||||
"Artemis.Storage": "1.0.0",
|
||||
"Ben.Demystifier": "0.1.6",
|
||||
"HidSharp": "2.1.0",
|
||||
"Humanizer.Core": "2.8.26",
|
||||
"LiteDB": "5.0.9",
|
||||
"McMaster.NETCore.Plugins": "1.3.1",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user