Caraxi / SimpleTweaksPlugin

GNU Affero General Public License v3.0
151 stars 139 forks source link

Update DisableMountVolumeChange #804

Closed lmcintyre closed 1 month ago

lmcintyre commented 1 month ago

Some of the functions that handled BGM state got brought into the GetSpecialMode function. Since the function now operates on the field directly in the BGMPlayer structure, setting it before or after the function will do nothing. Therefore, the hook stores the special mode type to utilize for another hook, UpdateFromSpecialMode. This function receives a 1 for the 2nd arg if the special mode from GetSpecialMode is 4.

In the end, we can entirely ignore the special mode and call UpdateFromSpecialMode with a 1 if we're on a mount (special mode type 2), and it works fine.