Add label for AI Service Mode

This commit is contained in:
twinaphex 2019-08-23 20:00:33 +02:00
parent 9589621619
commit 9ba2936f9a
21 changed files with 180 additions and 0 deletions

View File

@ -4074,3 +4074,11 @@ MSG_HASH(MENU_ENUM_SUBLABEL_LOAD_DISC,
"Load a physical media disc. You should first select the core (Load Core) you intend to use with the disc.")
MSG_HASH(MENU_ENUM_SUBLABEL_DUMP_DISC,
"Dump the physical media disc to internal storage. It will be saved as an image file.")
MSG_HASH(
MENU_ENUM_LABEL_VALUE_AI_SERVICE_IMAGE_MODE,
"Image Mode"
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_AI_SERVICE_SPEECH_MODE,
"Speech Mode"
)

View File

@ -5092,3 +5092,11 @@ MSG_HASH(MENU_ENUM_SUBLABEL_LOAD_DISC,
"Load a physical media disc. You should first select the core (Load Core) you intend to use with the disc.")
MSG_HASH(MENU_ENUM_SUBLABEL_DUMP_DISC,
"Dump the physical media disc to internal storage. It will be saved as an image file.")
MSG_HASH(
MENU_ENUM_LABEL_VALUE_AI_SERVICE_IMAGE_MODE,
"Image Mode"
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_AI_SERVICE_SPEECH_MODE,
"Speech Mode"
)

View File

@ -3850,3 +3850,11 @@ MSG_HASH(MENU_ENUM_SUBLABEL_LOAD_DISC,
"Load a physical media disc. You should first select the core (Load Core) you intend to use with the disc.")
MSG_HASH(MENU_ENUM_SUBLABEL_DUMP_DISC,
"Dump the physical media disc to internal storage. It will be saved as an image file.")
MSG_HASH(
MENU_ENUM_LABEL_VALUE_AI_SERVICE_IMAGE_MODE,
"Image Mode"
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_AI_SERVICE_SPEECH_MODE,
"Speech Mode"
)

View File

@ -3979,3 +3979,11 @@ MSG_HASH(MENU_ENUM_SUBLABEL_LOAD_DISC,
"Load a physical media disc. You should first select the core (Load Core) you intend to use with the disc.")
MSG_HASH(MENU_ENUM_SUBLABEL_DUMP_DISC,
"Dump the physical media disc to internal storage. It will be saved as an image file.")
MSG_HASH(
MENU_ENUM_LABEL_VALUE_AI_SERVICE_IMAGE_MODE,
"Image Mode"
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_AI_SERVICE_SPEECH_MODE,
"Speech Mode"
)

View File

@ -8056,3 +8056,11 @@ MSG_HASH(MENU_ENUM_SUBLABEL_LOAD_DISC,
"Load a physical media disc. You should first select the core (Load Core) you intend to use with the disc.")
MSG_HASH(MENU_ENUM_SUBLABEL_DUMP_DISC,
"Dump the physical media disc to internal storage. It will be saved as an image file.")
MSG_HASH(
MENU_ENUM_LABEL_VALUE_AI_SERVICE_IMAGE_MODE,
"Image Mode"
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_AI_SERVICE_SPEECH_MODE,
"Speech Mode"
)

View File

@ -3738,3 +3738,11 @@ MSG_HASH(MENU_ENUM_SUBLABEL_LOAD_DISC,
"Load a physical media disc. You should first select the core (Load Core) you intend to use with the disc.")
MSG_HASH(MENU_ENUM_SUBLABEL_DUMP_DISC,
"Dump the physical media disc to internal storage. It will be saved as an image file.")
MSG_HASH(
MENU_ENUM_LABEL_VALUE_AI_SERVICE_IMAGE_MODE,
"Image Mode"
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_AI_SERVICE_SPEECH_MODE,
"Speech Mode"
)

View File

@ -8208,3 +8208,11 @@ MSG_HASH(MENU_ENUM_SUBLABEL_LOAD_DISC,
"Load a physical media disc. You should first select the core (Load Core) you intend to use with the disc.")
MSG_HASH(MENU_ENUM_SUBLABEL_DUMP_DISC,
"Dump the physical media disc to internal storage. It will be saved as an image file.")
MSG_HASH(
MENU_ENUM_LABEL_VALUE_AI_SERVICE_IMAGE_MODE,
"Image Mode"
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_AI_SERVICE_SPEECH_MODE,
"Speech Mode"
)

View File

@ -8996,3 +8996,11 @@ MSG_HASH(MENU_ENUM_SUBLABEL_LOAD_DISC,
"Load a physical media disc. You should first select the core (Load Core) you intend to use with the disc.")
MSG_HASH(MENU_ENUM_SUBLABEL_DUMP_DISC,
"Dump the physical media disc to internal storage. It will be saved as an image file.")
MSG_HASH(
MENU_ENUM_LABEL_VALUE_AI_SERVICE_IMAGE_MODE,
"Image Mode"
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_AI_SERVICE_SPEECH_MODE,
"Speech Mode"
)

View File

@ -3959,3 +3959,11 @@ MSG_HASH(MENU_ENUM_SUBLABEL_LOAD_DISC,
"Load a physical media disc. You should first select the core (Load Core) you intend to use with the disc.")
MSG_HASH(MENU_ENUM_SUBLABEL_DUMP_DISC,
"Dump the physical media disc to internal storage. It will be saved as an image file.")
MSG_HASH(
MENU_ENUM_LABEL_VALUE_AI_SERVICE_IMAGE_MODE,
"Image Mode"
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_AI_SERVICE_SPEECH_MODE,
"Speech Mode"
)

View File

@ -9371,3 +9371,11 @@ MSG_HASH(MENU_ENUM_SUBLABEL_LOAD_DISC,
"Load a physical media disc. You should first select the core (Load Core) you intend to use with the disc.")
MSG_HASH(MENU_ENUM_SUBLABEL_DUMP_DISC,
"Dump the physical media disc to internal storage. It will be saved as an image file.")
MSG_HASH(
MENU_ENUM_LABEL_VALUE_AI_SERVICE_IMAGE_MODE,
"Image Mode"
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_AI_SERVICE_SPEECH_MODE,
"Speech Mode"
)

View File

@ -9203,3 +9203,11 @@ MSG_HASH(MENU_ENUM_SUBLABEL_LOAD_DISC,
"Load a physical media disc. You should first select the core (Load Core) you intend to use with the disc.")
MSG_HASH(MENU_ENUM_SUBLABEL_DUMP_DISC,
"Dump the physical media disc to internal storage. It will be saved as an image file.")
MSG_HASH(
MENU_ENUM_LABEL_VALUE_AI_SERVICE_IMAGE_MODE,
"Image Mode"
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_AI_SERVICE_SPEECH_MODE,
"Speech Mode"
)

View File

@ -3732,3 +3732,11 @@ MSG_HASH(MENU_ENUM_SUBLABEL_LOAD_DISC,
"Load a physical media disc. You should first select the core (Load Core) you intend to use with the disc.")
MSG_HASH(MENU_ENUM_SUBLABEL_DUMP_DISC,
"Dump the physical media disc to internal storage. It will be saved as an image file.")
MSG_HASH(
MENU_ENUM_LABEL_VALUE_AI_SERVICE_IMAGE_MODE,
"Image Mode"
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_AI_SERVICE_SPEECH_MODE,
"Speech Mode"
)

View File

@ -4523,3 +4523,11 @@ MSG_HASH(MENU_ENUM_SUBLABEL_LOAD_DISC,
"Load a physical media disc. You should first select the core (Load Core) you intend to use with the disc.")
MSG_HASH(MENU_ENUM_SUBLABEL_DUMP_DISC,
"Dump the physical media disc to internal storage. It will be saved as an image file.")
MSG_HASH(
MENU_ENUM_LABEL_VALUE_AI_SERVICE_IMAGE_MODE,
"Image Mode"
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_AI_SERVICE_SPEECH_MODE,
"Speech Mode"
)

View File

@ -9283,3 +9283,11 @@ MSG_HASH(MENU_ENUM_SUBLABEL_LOAD_DISC,
"Load a physical media disc. You should first select the core (Load Core) you intend to use with the disc.")
MSG_HASH(MENU_ENUM_SUBLABEL_DUMP_DISC,
"Dump the physical media disc to internal storage. It will be saved as an image file.")
MSG_HASH(
MENU_ENUM_LABEL_VALUE_AI_SERVICE_IMAGE_MODE,
"Image Mode"
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_AI_SERVICE_SPEECH_MODE,
"Speech Mode"
)

View File

@ -3804,3 +3804,11 @@ MSG_HASH(MENU_ENUM_SUBLABEL_LOAD_DISC,
"Load a physical media disc. You should first select the core (Load Core) you intend to use with the disc.")
MSG_HASH(MENU_ENUM_SUBLABEL_DUMP_DISC,
"Dump the physical media disc to internal storage. It will be saved as an image file.")
MSG_HASH(
MENU_ENUM_LABEL_VALUE_AI_SERVICE_IMAGE_MODE,
"Image Mode"
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_AI_SERVICE_SPEECH_MODE,
"Speech Mode"
)

View File

@ -4002,3 +4002,11 @@ MSG_HASH(MENU_ENUM_SUBLABEL_LOAD_DISC,
"Load a physical media disc. You should first select the core (Load Core) you intend to use with the disc.")
MSG_HASH(MENU_ENUM_SUBLABEL_DUMP_DISC,
"Dump the physical media disc to internal storage. It will be saved as an image file.")
MSG_HASH(
MENU_ENUM_LABEL_VALUE_AI_SERVICE_IMAGE_MODE,
"Image Mode"
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_AI_SERVICE_SPEECH_MODE,
"Speech Mode"
)

View File

@ -9008,3 +9008,11 @@ MSG_HASH(MENU_ENUM_SUBLABEL_LOAD_DISC,
"Load a physical media disc. You should first select the core (Load Core) you intend to use with the disc.")
MSG_HASH(MENU_ENUM_SUBLABEL_DUMP_DISC,
"Dump the physical media disc to internal storage. It will be saved as an image file.")
MSG_HASH(
MENU_ENUM_LABEL_VALUE_AI_SERVICE_IMAGE_MODE,
"Image Mode"
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_AI_SERVICE_SPEECH_MODE,
"Speech Mode"
)

View File

@ -9507,3 +9507,11 @@ MSG_HASH(MENU_ENUM_SUBLABEL_LOAD_DISC,
"Load a physical media disc. You should first select the core (Load Core) you intend to use with the disc.")
MSG_HASH(MENU_ENUM_SUBLABEL_DUMP_DISC,
"Dump the physical media disc to internal storage. It will be saved as an image file.")
MSG_HASH(
MENU_ENUM_LABEL_VALUE_AI_SERVICE_IMAGE_MODE,
"Image Mode"
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_AI_SERVICE_SPEECH_MODE,
"Speech Mode"
)

View File

@ -3894,3 +3894,11 @@ MSG_HASH(MENU_ENUM_SUBLABEL_LOAD_DISC,
"Load a physical media disc. You should first select the core (Load Core) you intend to use with the disc.")
MSG_HASH(MENU_ENUM_SUBLABEL_DUMP_DISC,
"Dump the physical media disc to internal storage. It will be saved as an image file.")
MSG_HASH(
MENU_ENUM_LABEL_VALUE_AI_SERVICE_IMAGE_MODE,
"Image Mode"
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_AI_SERVICE_SPEECH_MODE,
"Speech Mode"
)

View File

@ -2823,6 +2823,30 @@ static void setting_get_string_representation_uint_keyboard_gamepad_mapping_type
#endif
#ifdef HAVE_TRANSLATE
static void setting_get_string_representation_uint_ai_service_mode(
rarch_setting_t *setting,
char *s, size_t len)
{
enum msg_hash_enums enum_idx = MSG_UNKNOWN;
if (!setting)
return;
switch (*setting->value.target.unsigned_integer)
{
case 0:
enum_idx = MENU_ENUM_LABEL_VALUE_AI_SERVICE_IMAGE_MODE;
break;
case 1:
enum_idx = MENU_ENUM_LABEL_VALUE_AI_SERVICE_SPEECH_MODE;
break;
default:
break;
}
if (enum_idx != 0)
strlcpy(s, msg_hash_to_str(enum_idx), len);
}
static void setting_get_string_representation_uint_ai_service_lang(
rarch_setting_t *setting,
char *s, size_t len)
@ -13103,6 +13127,8 @@ static bool setting_append_list(
parent_group,
general_write_handler,
general_read_handler);
(*list)[list_info->index - 1].get_string_representation =
&setting_get_string_representation_uint_ai_service_mode;
(*list)[list_info->index - 1].action_ok = &setting_action_ok_uint;
menu_settings_list_current_add_range(list, list_info, 0, 1, 1, true, true);

View File

@ -2148,6 +2148,8 @@ enum msg_hash_enums
MENU_ENUM_LABEL_VALUE_LANG_URDU,
MENU_ENUM_LABEL_VALUE_LANG_WELSH,
MENU_ENUM_LABEL_VALUE_LANG_YIDDISH,
MENU_ENUM_LABEL_VALUE_AI_SERVICE_IMAGE_MODE,
MENU_ENUM_LABEL_VALUE_AI_SERVICE_SPEECH_MODE,
MENU_ENUM_LABEL_VALUE_NONE,
MENU_ENUM_LABEL_VALUE_NO_INFORMATION_AVAILABLE,