mc.mitm: rename enable_dualsense_player_leds -> dualsense_enable_player_leds to be consistent with other settings names

This commit is contained in:
ndeadly 2023-03-07 11:56:32 +01:00
parent 193df29205
commit 1bc46ef35b
4 changed files with 6 additions and 6 deletions

View file

@ -16,6 +16,6 @@
; Set LED lightbar brightness for Sony Dualsense controllers. Valid range [0-9] where 0=0% (off), 9=100% [default 5(50%)] ; Set LED lightbar brightness for Sony Dualsense controllers. Valid range [0-9] where 0=0% (off), 9=100% [default 5(50%)]
;dualsense_lightbar_brightness=4 ;dualsense_lightbar_brightness=4
; Enable the white player indicator LEDs below the Dualsense touchpad [default true] ; Enable the white player indicator LEDs below the Dualsense touchpad [default true]
;enable_dualsense_player_leds=false ;dualsense_enable_player_leds=false
; Set Dualsense vibration intensity, 12.5% per increment. Valid range [1-8] where 1=12.5%, 8=100% [default 4(50%)] ; Set Dualsense vibration intensity, 12.5% per increment. Valid range [1-8] where 1=12.5%, 8=100% [default 4(50%)]
;dualsense_vibration_intensity=4 ;dualsense_vibration_intensity=4

View file

@ -104,7 +104,7 @@ namespace ams::controller {
u16 fw_version = *reinterpret_cast<u16 *>(&m_version_info.data[43]); u16 fw_version = *reinterpret_cast<u16 *>(&m_version_info.data[43]);
auto config = mitm::GetGlobalConfig(); auto config = mitm::GetGlobalConfig();
if (!config->misc.enable_dualsense_player_leds) { if (!config->misc.dualsense_enable_player_leds) {
m_led_flags = 0x00; m_led_flags = 0x00;
} else if (fw_version < 0x0282) { } else if (fw_version < 0x0282) {
m_led_flags = player_led_flags[player_number]; m_led_flags = player_led_flags[player_number];

View file

@ -32,7 +32,7 @@ namespace ams::mitm {
.misc = { .misc = {
.dualshock4_lightbar_brightness = 5, .dualshock4_lightbar_brightness = 5,
.dualsense_lightbar_brightness = 5, .dualsense_lightbar_brightness = 5,
.enable_dualsense_player_leds = true, .dualsense_enable_player_leds = true,
.dualsense_vibration_intensity = 4 .dualsense_vibration_intensity = 4
} }
}; };
@ -94,8 +94,8 @@ namespace ams::mitm {
ParseInt(value, &config->misc.dualshock4_lightbar_brightness, 0, 9); ParseInt(value, &config->misc.dualshock4_lightbar_brightness, 0, 9);
} else if (strcasecmp(name, "dualsense_lightbar_brightness") == 0) { } else if (strcasecmp(name, "dualsense_lightbar_brightness") == 0) {
ParseInt(value, &config->misc.dualsense_lightbar_brightness, 0, 9); ParseInt(value, &config->misc.dualsense_lightbar_brightness, 0, 9);
} else if (strcasecmp(name, "enable_dualsense_player_leds") == 0) { } else if (strcasecmp(name, "dualsense_enable_player_leds") == 0) {
ParseBoolean(value, &config->misc.enable_dualsense_player_leds); ParseBoolean(value, &config->misc.dualsense_enable_player_leds);
} else if (strcasecmp(name, "dualsense_vibration_intensity") == 0) { } else if (strcasecmp(name, "dualsense_vibration_intensity") == 0) {
ParseInt(value, &config->misc.dualsense_vibration_intensity, 1, 8); ParseInt(value, &config->misc.dualsense_vibration_intensity, 1, 8);
} }

View file

@ -31,7 +31,7 @@ namespace ams::mitm {
struct { struct {
int dualshock4_lightbar_brightness; int dualshock4_lightbar_brightness;
int dualsense_lightbar_brightness; int dualsense_lightbar_brightness;
bool enable_dualsense_player_leds; bool dualsense_enable_player_leds;
int dualsense_vibration_intensity; int dualsense_vibration_intensity;
} misc; } misc;
}; };