zeobviouslyfakeacc / ModSettings

Library for The Long Dark that lets other mods create their own mod settings and custom mode settings
MIT License
14 stars 6 forks source link

UnityEngine.KeyCode.None causes JSON file to not be updated #12

Open Arkhorse opened 1 year ago

Arkhorse commented 1 year ago

Like the title states, using UnityEngine.KeyCode.None as the default for a KeyCode setting will result in that mods JSON file to not be updated. You can test it via my mod MapManager. Direct setting code https://github.com/Arkhorse/MapManager/blob/a6252f3eb1ccfcd11e860a579cddf5b646c9aecf/Settings.cs#L20

I dont know if this affects new JSON files or just existing ones

Arkhorse commented 1 year ago

I have narrowed it down to using an override for OnConfirm()