Buttplug sex toy control library
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: Return specifiers as part of user config loading

Needed for websocket defs in flutter

+2 -6
+2 -6
buttplug/src/util/device_configuration.rs
··· 538 538 Ok(dcm_builder) 539 539 } 540 540 541 - pub fn load_user_configs(user_config_str: &str) -> Vec<UserDeviceConfigPair> { 542 - let user_config = load_protocol_config_from_json(user_config_str, true).unwrap(); 543 - match user_config.user_configs { 544 - Some(config) => config.user_device_configs.unwrap_or_default(), 545 - None => vec![], 546 - } 541 + pub fn load_user_configs(user_config_str: &str) -> UserConfigDefinition { 542 + load_protocol_config_from_json(user_config_str, true).unwrap().user_configs.unwrap() 547 543 } 548 544 549 545 pub fn create_test_dcm(allow_raw_messages: bool) -> DeviceConfigurationManager {