jupjohn / LethalCompany-NoiseSuppression

Enables noise suppression on microphones in Lethal Company
https://thunderstore.io/c/lethal-company/p/jammeh/NoiseSuppression/
MIT License
1 stars 1 forks source link

feat: reset suppression-related preferences on shutdown #3

Open jupjohn opened 8 months ago

jupjohn commented 8 months ago

Currently, when shutting down the application and removing the mod, the state from the last launch will be kept. This can be confusing for users when they expect noise suppression to disappear when the mod is uninstalled.

Dissonance_Audio_BgDenoise_Enabled and Dissonance_Audio_BgDenoise_Amount are saved via Unity's PlayerPrefs class which persists to registry on Windows and to an XDG dir on Linux (as far as I could tell).

I have no idea where to hook this into :\