/tg/ Station 13 - Modules - Types

code/modules/client/preferences/middleware/legacy_toggles.dm

/datum/preference_middleware/legacy_togglesIn the before times, toggles were all stored in one bitfield. In order to preserve this existing data (and code) without massive migrations, this middleware attempts to handle this in a way transparent to the preferences UI itself. In the future, the existing toggles data should just be migrated to individual /datum/preference/toggles.