You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
677 B

  1. namespace IPA.Loader.Features
  2. {
  3. internal class AddInFeature : Feature
  4. {
  5. private PluginLoader.PluginMetadata selfMeta;
  6. public override bool Initialize(PluginLoader.PluginMetadata meta, string[] parameters)
  7. {
  8. selfMeta = meta;
  9. RequireLoaded(meta);
  10. return true;
  11. }
  12. public override bool BeforeLoad(PluginLoader.PluginMetadata plugin)
  13. {
  14. return plugin != selfMeta;
  15. }
  16. public override string InvalidMessage
  17. {
  18. get => "Plugin is an add-in for some other mod, therefore should not be loaded.";
  19. protected set { }
  20. }
  21. }
  22. }