Browse Source

Fix errors in Feature

pull/94/head
Anairkoen Schno 3 years ago
parent
commit
4e2d7feea4
Signed by: DaNike GPG Key ID: BEFB74D5F3FC4387
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      IPA.Loader/Loader/Features/Feature.cs

+ 2
- 3
IPA.Loader/Loader/Features/Feature.cs View File

@ -64,7 +64,6 @@ namespace IPA.Loader.Features
// TODO: rework features to take arguments as JSON objects
[SuppressMessage("Nullability", "CS8618", Justification = "Reset sets those fields.")]
static Feature()
{
Reset();
@ -82,8 +81,8 @@ namespace IPA.Loader.Features
};
}
private static Dictionary<string, Type> featureTypes;
private static Dictionary<string, PluginMetadata?> featureDelcarers;
private static Dictionary<string, Type> featureTypes = null!;
private static Dictionary<string, PluginMetadata?> featureDelcarers = null!;
internal static bool HasFeature(string name) => featureTypes.ContainsKey(name);


Loading…
Cancel
Save