mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
Meta - Update RGB.NET
Meta - Fixed warnings
This commit is contained in:
1 parent
ef5a9fa88d
commit
166cb888c1
16 files changed
+29
-23
No files matched your search
@@ -44,9 +44,9 @@
|
||||
<PackageReference Include="Ninject" Version="3.3.6" />
|
||||
<PackageReference Include="Ninject.Extensions.ChildKernel" Version="3.3.0" />
|
||||
<PackageReference Include="Ninject.Extensions.Conventions" Version="3.3.0" />
|
||||
<PackageReference Include="RGB.NET.Core" Version="1.0.0-prerelease.46" />
|
||||
<PackageReference Include="RGB.NET.Layout" Version="1.0.0-prerelease.46" />
|
||||
<PackageReference Include="RGB.NET.Presets" Version="1.0.0-prerelease.46" />
|
||||
<PackageReference Include="RGB.NET.Core" Version="1.0.0" />
|
||||
<PackageReference Include="RGB.NET.Layout" Version="1.0.0" />
|
||||
<PackageReference Include="RGB.NET.Presets" Version="1.0.0" />
|
||||
<PackageReference Include="Serilog" Version="2.11.0" />
|
||||
<PackageReference Include="Serilog.Sinks.Console" Version="4.0.1" />
|
||||
<PackageReference Include="Serilog.Sinks.Debug" Version="2.0.0" />
|
||||
|
||||
@@ -62,8 +62,8 @@ public static class Constants
|
||||
/// <summary>
|
||||
/// The current API version for plugins
|
||||
/// </summary>
|
||||
public static readonly int PluginApiVersion = int.Parse(CoreAssembly.GetCustomAttributes<AssemblyMetadataAttribute>()
|
||||
.First(a => a.Key == "PluginApiVersion").Value);
|
||||
public static readonly int PluginApiVersion = int.Parse(CoreAssembly.GetCustomAttributes<AssemblyMetadataAttribute>().First(a => a.Key == "PluginApiVersion").Value ??
|
||||
throw new InvalidOperationException("Cannot find PluginApiVersion metadata in assembly"));
|
||||
|
||||
/// <summary>
|
||||
/// The plugin info used by core components of Artemis
|
||||
|
||||
@@ -10,9 +10,9 @@ namespace Artemis.Core.JsonConverters
|
||||
/// </summary>
|
||||
internal class ForgivingVersionConverter : VersionConverter
|
||||
{
|
||||
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
|
||||
public override object? ReadJson(JsonReader reader, Type objectType, object? existingValue, JsonSerializer serializer)
|
||||
{
|
||||
object obj = base.ReadJson(reader, objectType, existingValue, serializer);
|
||||
object? obj = base.ReadJson(reader, objectType, existingValue, serializer);
|
||||
if (obj is not Version v)
|
||||
return obj;
|
||||
|
||||
|
||||
@@ -18,7 +18,6 @@ namespace Artemis.Core;
|
||||
public class PluginFeatureInfo : CorePropertyChanged, IPrerequisitesSubject
|
||||
{
|
||||
private string? _description;
|
||||
private string? _icon;
|
||||
private PluginFeature? _instance;
|
||||
private Exception? _loadException;
|
||||
private string _name = null!;
|
||||
|
||||
@@ -8,7 +8,10 @@ namespace Artemis.Core.Services;
|
||||
/// </summary>
|
||||
public abstract class InputProvider : IDisposable
|
||||
{
|
||||
public InputProvider()
|
||||
/// <summary>
|
||||
/// Creates a new instance of the <see cref="InputProvider"/> class.
|
||||
/// </summary>
|
||||
protected InputProvider()
|
||||
{
|
||||
ProviderName = GetType().FullName ?? throw new InvalidOperationException("Input provider must have a type with a name");
|
||||
}
|
||||
|
||||
@@ -97,7 +97,7 @@ public interface INode : INotifyPropertyChanged, IBreakableModel
|
||||
void TryEvaluate();
|
||||
|
||||
/// <summary>
|
||||
/// Resets the node causing all pins to re-evaluate the next time <see cref="Evaluate" /> is called
|
||||
/// Resets the node causing all pins to re-evaluate the next time <see cref="TryEvaluate" /> is called
|
||||
/// </summary>
|
||||
void Reset();
|
||||
}
|
||||
Reference in new issue
Block a user