Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin A with a soft dependency on plugin B with missing hard dependencies results in plugin A being skipped. #126

Closed
toebeann opened this issue Jul 23, 2020 · 0 comments

Comments

@toebeann
Copy link

toebeann commented Jul 23, 2020

Describe the bug
A plugin with a soft dependency on any plugin with one or more unresolved hard dependencies will not be loaded.

To Reproduce

using BepInEx;

[BepInPlugin("SoftDependencyTest", "SoftDependencyTest", "1.0")]
[BepInDependency("HardDependencyTest", BepInDependency.DependencyFlags.SoftDependency)]
public class SoftDependencyTest : BaseUnityPlugin { }

[BepInPlugin("HardDependencyTest", "HardDependencyTest", "1.0")]
[BepInDependency("NONEXISTENTPLUGIN", BepInDependency.DependencyFlags.HardDependency)]
public class HardDependencyTest : BaseUnityPlugin { }

Expected behavior
A plugin with a soft dependency on a plugin with unresolved hard dependencies should still load - only the plugin with the unresolved hard dependencies should be skipped. Instead, neither are loaded.

Screenshots and logs
log.txt

Desktop (please complete the following information):

  • Game and game version [e.g. COM3D2 1.15]: Subnautica 63668
  • BepInEx version [e.g. 4.0]: 5.2

Additional context
N/A.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant