diff --git a/intl/msg_hash_us.c b/intl/msg_hash_us.c index 78f378a267..b39b5e5b44 100644 --- a/intl/msg_hash_us.c +++ b/intl/msg_hash_us.c @@ -3068,6 +3068,14 @@ const char *msg_hash_to_str_us(enum msg_hash_enums msg) return "Adjusts settings for joypads, keyboard and mouse."; case MENU_ENUM_SUBLABEL_WIFI_SETTINGS: return "Scans for wireless networks and establishes connection."; + case MENU_ENUM_SUBLABEL_SERVICES_SETTINGS: + return "Manage operating system level services."; + case MENU_ENUM_SUBLABEL_SSH_ENABLE: + return "Enable or disable remote command line access."; + case MENU_ENUM_SUBLABEL_SAMBA_ENABLE: + return "Enable or disable network sharing of your folders."; + case MENU_ENUM_SUBLABEL_BLUETOOTH_ENABLE: + return "Enable or disable bluetooth."; case MENU_ENUM_SUBLABEL_SUSPEND_SCREENSAVER_ENABLE: return "Prevents your system's screensaver from becoming active."; case MENU_ENUM_SUBLABEL_VIDEO_MAX_SWAPCHAIN_IMAGES: diff --git a/menu/cbs/menu_cbs_sublabel.c b/menu/cbs/menu_cbs_sublabel.c index 14606367ed..a6ffe988b0 100644 --- a/menu/cbs/menu_cbs_sublabel.c +++ b/menu/cbs/menu_cbs_sublabel.c @@ -96,6 +96,46 @@ static int action_bind_sublabel_wifi_settings_list( return 0; } +static int action_bind_sublabel_services_settings_list( + file_list_t *list, + unsigned type, unsigned i, + const char *label, const char *path, + char *s, size_t len) +{ + strlcpy(s, msg_hash_to_str(MENU_ENUM_SUBLABEL_SERVICES_SETTINGS), len); + return 0; +} + +static int action_bind_sublabel_ssh_enable( + file_list_t *list, + unsigned type, unsigned i, + const char *label, const char *path, + char *s, size_t len) +{ + strlcpy(s, msg_hash_to_str(MENU_ENUM_SUBLABEL_SSH_ENABLE), len); + return 0; +} + +static int action_bind_sublabel_samba_enable( + file_list_t *list, + unsigned type, unsigned i, + const char *label, const char *path, + char *s, size_t len) +{ + strlcpy(s, msg_hash_to_str(MENU_ENUM_SUBLABEL_SAMBA_ENABLE), len); + return 0; +} + +static int action_bind_sublabel_bluetooth_enable( + file_list_t *list, + unsigned type, unsigned i, + const char *label, const char *path, + char *s, size_t len) +{ + strlcpy(s, msg_hash_to_str(MENU_ENUM_SUBLABEL_BLUETOOTH_ENABLE), len); + return 0; +} + static int action_bind_sublabel_max_swapchain_images( file_list_t *list, unsigned type, unsigned i, @@ -389,6 +429,18 @@ int menu_cbs_init_bind_sublabel(menu_file_list_cbs_t *cbs, case MENU_ENUM_LABEL_WIFI_SETTINGS: BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_wifi_settings_list); break; + case MENU_ENUM_LABEL_LAKKA_SERVICES: + BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_services_settings_list); + break; + case MENU_ENUM_LABEL_SSH_ENABLE: + BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_ssh_enable); + break; + case MENU_ENUM_LABEL_SAMBA_ENABLE: + BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_samba_enable); + break; + case MENU_ENUM_LABEL_BLUETOOTH_ENABLE: + BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_bluetooth_enable); + break; case MENU_ENUM_LABEL_SUSPEND_SCREENSAVER_ENABLE: BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_suspend_screensaver_enable); break; diff --git a/msg_hash.h b/msg_hash.h index 45228cc785..e7238be32f 100644 --- a/msg_hash.h +++ b/msg_hash.h @@ -1939,6 +1939,10 @@ enum msg_hash_enums MENU_ENUM_SUBLABEL_AUDIO_SETTINGS, MENU_ENUM_SUBLABEL_INPUT_SETTINGS, MENU_ENUM_SUBLABEL_WIFI_SETTINGS, + MENU_ENUM_SUBLABEL_SERVICES_SETTINGS, + MENU_ENUM_SUBLABEL_SSH_ENABLE, + MENU_ENUM_SUBLABEL_SAMBA_ENABLE, + MENU_ENUM_SUBLABEL_BLUETOOTH_ENABLE, MENU_ENUM_SUBLABEL_SUSPEND_SCREENSAVER_ENABLE, MENU_ENUM_SUBLABEL_FPS_SHOW, MENU_ENUM_SUBLABEL_VIDEO_MAX_SWAPCHAIN_IMAGES,