NeighTools / UnityDoorstop

Doorstop -- run C# before Unity does!
GNU Lesser General Public License v2.1
419 stars 62 forks source link

[question] about ignoreDisableSwitch #38

Closed guilherme-gm closed 1 year ago

guilherme-gm commented 1 year ago

Hello,

First of all, I am totally new to modding unity games and also to doorstop, just found about it a few days ago when checking out bepinex.

I would like to ask where I can get more information about ignoreDisableSwitch. Checking the config file and the DOORSTOP_DISABLE documentation I understand that this config would ignore an env var that disables Doorstop.

But I have some questions:

  1. Why would I want to specifically disable it via an environment var? is there a known use case?
  2. What are the risks of enabling ignoreDisableSwitch? as there is an alert that suggests it has some risks

I recently had an issue where a steam game was restarting just after it launched and disabling bepinex, changing this config in doorstop to true made it work, but I am clueless about why would I want it as false, or if there is a risk around using it as true.

Thanks in advance

ghorsington commented 1 year ago

Greetings!

You can look at the comment in https://github.com/NeighTools/UnityDoorstop/issues/34#issuecomment-1251871684 for information on why the option was originally made and how it works.

guilherme-gm commented 1 year ago

Thank you very much!