mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +00:00
Plugins - Prevent crash when multiple plugins use HidSharp
This commit is contained in:
1 parent
220222d102
commit
d3d0ac9c9a
5 files changed
+23
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user