Sublabels for Lakka services
This commit is contained in:
parent
ce0da459fb
commit
c8da8f81a5
|
@ -3068,6 +3068,14 @@ const char *msg_hash_to_str_us(enum msg_hash_enums msg)
|
||||||
return "Adjusts settings for joypads, keyboard and mouse.";
|
return "Adjusts settings for joypads, keyboard and mouse.";
|
||||||
case MENU_ENUM_SUBLABEL_WIFI_SETTINGS:
|
case MENU_ENUM_SUBLABEL_WIFI_SETTINGS:
|
||||||
return "Scans for wireless networks and establishes connection.";
|
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:
|
case MENU_ENUM_SUBLABEL_SUSPEND_SCREENSAVER_ENABLE:
|
||||||
return "Prevents your system's screensaver from becoming active.";
|
return "Prevents your system's screensaver from becoming active.";
|
||||||
case MENU_ENUM_SUBLABEL_VIDEO_MAX_SWAPCHAIN_IMAGES:
|
case MENU_ENUM_SUBLABEL_VIDEO_MAX_SWAPCHAIN_IMAGES:
|
||||||
|
|
|
@ -96,6 +96,46 @@ static int action_bind_sublabel_wifi_settings_list(
|
||||||
return 0;
|
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(
|
static int action_bind_sublabel_max_swapchain_images(
|
||||||
file_list_t *list,
|
file_list_t *list,
|
||||||
unsigned type, unsigned i,
|
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:
|
case MENU_ENUM_LABEL_WIFI_SETTINGS:
|
||||||
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_wifi_settings_list);
|
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_wifi_settings_list);
|
||||||
break;
|
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:
|
case MENU_ENUM_LABEL_SUSPEND_SCREENSAVER_ENABLE:
|
||||||
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_suspend_screensaver_enable);
|
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_suspend_screensaver_enable);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -1939,6 +1939,10 @@ enum msg_hash_enums
|
||||||
MENU_ENUM_SUBLABEL_AUDIO_SETTINGS,
|
MENU_ENUM_SUBLABEL_AUDIO_SETTINGS,
|
||||||
MENU_ENUM_SUBLABEL_INPUT_SETTINGS,
|
MENU_ENUM_SUBLABEL_INPUT_SETTINGS,
|
||||||
MENU_ENUM_SUBLABEL_WIFI_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_SUSPEND_SCREENSAVER_ENABLE,
|
||||||
MENU_ENUM_SUBLABEL_FPS_SHOW,
|
MENU_ENUM_SUBLABEL_FPS_SHOW,
|
||||||
MENU_ENUM_SUBLABEL_VIDEO_MAX_SWAPCHAIN_IMAGES,
|
MENU_ENUM_SUBLABEL_VIDEO_MAX_SWAPCHAIN_IMAGES,
|
||||||
|
|
Loading…
Reference in New Issue