From 6e1658bb305387f22a26c5b4fb55cf00e5bb7384 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 31 Jan 2019 21:43:31 +0100 Subject: [PATCH] Add CoreAudio system information string --- intl/msg_hash_ar.h | 4 ++++ intl/msg_hash_chs.h | 4 ++++ intl/msg_hash_cht.h | 4 ++++ intl/msg_hash_de.h | 4 ++++ intl/msg_hash_el.h | 4 ++++ intl/msg_hash_eo.h | 4 ++++ intl/msg_hash_es.h | 4 ++++ intl/msg_hash_fr.h | 4 ++++ intl/msg_hash_it.h | 4 ++++ intl/msg_hash_ja.h | 4 ++++ intl/msg_hash_ko.h | 4 ++++ intl/msg_hash_nl.h | 4 ++++ intl/msg_hash_pl.h | 4 ++++ intl/msg_hash_pt_br.h | 4 ++++ intl/msg_hash_pt_pt.h | 4 ++++ intl/msg_hash_ru.h | 4 ++++ intl/msg_hash_us.h | 4 ++++ intl/msg_hash_vn.h | 4 ++++ menu/menu_displaylist.c | 11 ++++++++++- msg_hash.h | 1 + 20 files changed, 83 insertions(+), 1 deletion(-) diff --git a/intl/msg_hash_ar.h b/intl/msg_hash_ar.h index 68b446a05e..dac4c632ff 100644 --- a/intl/msg_hash_ar.h +++ b/intl/msg_hash_ar.h @@ -3752,3 +3752,7 @@ MSG_HASH( ) MSG_HASH(MENU_ENUM_LABEL_VALUE_VIDEO_WINDOW_SAVE_POSITION, "Remember Window Position and Size") +MSG_HASH( + MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_COREAUDIO_SUPPORT, + "CoreAudio support" + ) diff --git a/intl/msg_hash_chs.h b/intl/msg_hash_chs.h index 734a20d18b..c68303e6b7 100644 --- a/intl/msg_hash_chs.h +++ b/intl/msg_hash_chs.h @@ -4764,3 +4764,7 @@ MSG_HASH( ) MSG_HASH(MENU_ENUM_LABEL_VALUE_VIDEO_WINDOW_SAVE_POSITION, "Remember Window Position and Size") +MSG_HASH( + MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_COREAUDIO_SUPPORT, + "CoreAudio support" + ) diff --git a/intl/msg_hash_cht.h b/intl/msg_hash_cht.h index ce0eda30be..68962e2594 100644 --- a/intl/msg_hash_cht.h +++ b/intl/msg_hash_cht.h @@ -3522,3 +3522,7 @@ MSG_HASH( ) MSG_HASH(MENU_ENUM_LABEL_VALUE_VIDEO_WINDOW_SAVE_POSITION, "Remember Window Position and Size") +MSG_HASH( + MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_COREAUDIO_SUPPORT, + "CoreAudio support" + ) diff --git a/intl/msg_hash_de.h b/intl/msg_hash_de.h index 9c4e9f0f28..a87af6b448 100644 --- a/intl/msg_hash_de.h +++ b/intl/msg_hash_de.h @@ -3651,3 +3651,7 @@ MSG_HASH( ) MSG_HASH(MENU_ENUM_LABEL_VALUE_VIDEO_WINDOW_SAVE_POSITION, "Remember Window Position and Size") +MSG_HASH( + MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_COREAUDIO_SUPPORT, + "CoreAudio support" + ) diff --git a/intl/msg_hash_el.h b/intl/msg_hash_el.h index d0b6be0a3f..c86d04999b 100644 --- a/intl/msg_hash_el.h +++ b/intl/msg_hash_el.h @@ -7748,3 +7748,7 @@ MSG_HASH( ) MSG_HASH(MENU_ENUM_LABEL_VALUE_VIDEO_WINDOW_SAVE_POSITION, "Remember Window Position and Size") +MSG_HASH( + MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_COREAUDIO_SUPPORT, + "CoreAudio support" + ) diff --git a/intl/msg_hash_eo.h b/intl/msg_hash_eo.h index 6124ac6666..5b7a3b62e0 100644 --- a/intl/msg_hash_eo.h +++ b/intl/msg_hash_eo.h @@ -3410,3 +3410,7 @@ MSG_HASH( ) MSG_HASH(MENU_ENUM_LABEL_VALUE_VIDEO_WINDOW_SAVE_POSITION, "Remember Window Position and Size") +MSG_HASH( + MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_COREAUDIO_SUPPORT, + "CoreAudio support" + ) diff --git a/intl/msg_hash_es.h b/intl/msg_hash_es.h index 2ca9e36c3e..cde4e970bb 100644 --- a/intl/msg_hash_es.h +++ b/intl/msg_hash_es.h @@ -7884,3 +7884,7 @@ MSG_HASH( MENU_ENUM_LABEL_VALUE_HOLD_START, "Mantener Start (2 segundos)" ) +MSG_HASH( + MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_COREAUDIO_SUPPORT, + "CoreAudio support" + ) diff --git a/intl/msg_hash_fr.h b/intl/msg_hash_fr.h index 7022117970..ac548e9444 100644 --- a/intl/msg_hash_fr.h +++ b/intl/msg_hash_fr.h @@ -3566,3 +3566,7 @@ MSG_HASH( ) MSG_HASH(MENU_ENUM_LABEL_VALUE_VIDEO_WINDOW_SAVE_POSITION, "Remember Window Position and Size") +MSG_HASH( + MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_COREAUDIO_SUPPORT, + "CoreAudio support" + ) diff --git a/intl/msg_hash_it.h b/intl/msg_hash_it.h index 227a6e1cae..100449e88a 100644 --- a/intl/msg_hash_it.h +++ b/intl/msg_hash_it.h @@ -3607,3 +3607,7 @@ MSG_HASH( ) MSG_HASH(MENU_ENUM_LABEL_VALUE_VIDEO_WINDOW_SAVE_POSITION, "Ricorda la dimensione e posizione della finestra") +MSG_HASH( + MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_COREAUDIO_SUPPORT, + "CoreAudio support" + ) diff --git a/intl/msg_hash_ja.h b/intl/msg_hash_ja.h index 458931b296..4a03650676 100644 --- a/intl/msg_hash_ja.h +++ b/intl/msg_hash_ja.h @@ -4056,3 +4056,7 @@ MSG_HASH( ) MSG_HASH(MENU_ENUM_LABEL_VALUE_VIDEO_WINDOW_SAVE_POSITION, "ウィンドウの位置とサイズを記憶") +MSG_HASH( + MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_COREAUDIO_SUPPORT, + "CoreAudio support" + ) diff --git a/intl/msg_hash_ko.h b/intl/msg_hash_ko.h index 1e3aea16d3..1ac0a3dd74 100644 --- a/intl/msg_hash_ko.h +++ b/intl/msg_hash_ko.h @@ -3517,3 +3517,7 @@ MSG_HASH( ) MSG_HASH(MENU_ENUM_LABEL_VALUE_VIDEO_WINDOW_SAVE_POSITION, "창 위치와 사이즈를 기억합니다.") +MSG_HASH( + MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_COREAUDIO_SUPPORT, + "CoreAudio support" + ) diff --git a/intl/msg_hash_nl.h b/intl/msg_hash_nl.h index 576f202e10..def8fb25b3 100644 --- a/intl/msg_hash_nl.h +++ b/intl/msg_hash_nl.h @@ -3396,3 +3396,7 @@ MSG_HASH( ) MSG_HASH(MENU_ENUM_LABEL_VALUE_VIDEO_WINDOW_SAVE_POSITION, "Remember Window Position and Size") +MSG_HASH( + MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_COREAUDIO_SUPPORT, + "CoreAudio ondersteuning" + ) diff --git a/intl/msg_hash_pl.h b/intl/msg_hash_pl.h index eb23de37eb..8b26a2bee7 100644 --- a/intl/msg_hash_pl.h +++ b/intl/msg_hash_pl.h @@ -3810,3 +3810,7 @@ MSG_HASH( ) MSG_HASH(MENU_ENUM_LABEL_VALUE_VIDEO_WINDOW_SAVE_POSITION, "Zapamiętaj położenie i rozmiar okna") +MSG_HASH( + MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_COREAUDIO_SUPPORT, + "CoreAudio support" + ) diff --git a/intl/msg_hash_pt_br.h b/intl/msg_hash_pt_br.h index 2de0010d48..8700e47bce 100644 --- a/intl/msg_hash_pt_br.h +++ b/intl/msg_hash_pt_br.h @@ -8036,3 +8036,7 @@ MSG_HASH( MENU_ENUM_LABEL_VALUE_HOLD_START, "Segurar Start (2 segundos)" ) +MSG_HASH( + MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_COREAUDIO_SUPPORT, + "CoreAudio support" + ) diff --git a/intl/msg_hash_pt_pt.h b/intl/msg_hash_pt_pt.h index 6f14cd59ce..9f9721395d 100644 --- a/intl/msg_hash_pt_pt.h +++ b/intl/msg_hash_pt_pt.h @@ -3476,3 +3476,7 @@ MSG_HASH( ) MSG_HASH(MENU_ENUM_LABEL_VALUE_VIDEO_WINDOW_SAVE_POSITION, "Remember Window Position and Size") +MSG_HASH( + MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_COREAUDIO_SUPPORT, + "CoreAudio support" + ) diff --git a/intl/msg_hash_ru.h b/intl/msg_hash_ru.h index fbcc526030..401eae6bae 100644 --- a/intl/msg_hash_ru.h +++ b/intl/msg_hash_ru.h @@ -3679,3 +3679,7 @@ MSG_HASH( ) MSG_HASH(MENU_ENUM_LABEL_VALUE_VIDEO_WINDOW_SAVE_POSITION, "Remember Window Position and Size") +MSG_HASH( + MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_COREAUDIO_SUPPORT, + "CoreAudio support" + ) diff --git a/intl/msg_hash_us.h b/intl/msg_hash_us.h index 8603980993..53809150f5 100644 --- a/intl/msg_hash_us.h +++ b/intl/msg_hash_us.h @@ -8116,3 +8116,7 @@ MSG_HASH( MENU_ENUM_LABEL_VALUE_VIDEO_DRIVER_FALLBACK, "Your graphics driver is not compatible with the current video driver in RetroArch, falling back to the %s driver. Please restart RetroArch for the changes to take effect." ) +MSG_HASH( + MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_COREAUDIO_SUPPORT, + "CoreAudio support" + ) diff --git a/intl/msg_hash_vn.h b/intl/msg_hash_vn.h index 3671bfe70a..8849743b03 100644 --- a/intl/msg_hash_vn.h +++ b/intl/msg_hash_vn.h @@ -3566,3 +3566,7 @@ MSG_HASH( ) MSG_HASH(MENU_ENUM_LABEL_VALUE_VIDEO_WINDOW_SAVE_POSITION, "Remember Window Position and Size") +MSG_HASH( + MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_COREAUDIO_SUPPORT, + "CoreAudio support" + ) diff --git a/menu/menu_displaylist.c b/menu/menu_displaylist.c index 9dbbbdad7b..deda0344e4 100644 --- a/menu/menu_displaylist.c +++ b/menu/menu_displaylist.c @@ -542,7 +542,7 @@ static int menu_displaylist_parse_system_info(menu_displaylist_info_t *info) if (frontend) { - char tmp2[PATH_MAX_LENGTH]; + char tmp2[8192]; int major = 0; int minor = 0; @@ -1089,6 +1089,15 @@ static int menu_displaylist_parse_system_info(menu_displaylist_info_t *info) menu_entries_append_enum(info->list, feat_str, "", MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0); + snprintf(feat_str, sizeof(feat_str), + "%s: %s", + msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_COREAUDIO_SUPPORT), + _coreaudio_supp ? + msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES) : + msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO)); + menu_entries_append_enum(info->list, feat_str, "", + MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0); + snprintf(feat_str, sizeof(feat_str), "%s: %s", msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_DSOUND_SUPPORT), diff --git a/msg_hash.h b/msg_hash.h index a5136c476b..adb6c1809b 100644 --- a/msg_hash.h +++ b/msg_hash.h @@ -1835,6 +1835,7 @@ enum msg_hash_enums MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_ALSA_SUPPORT, MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_OSS_SUPPORT, MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_OPENAL_SUPPORT, + MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_COREAUDIO_SUPPORT, MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_OPENSL_SUPPORT, MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_RSOUND_SUPPORT, MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_ROARAUDIO_SUPPORT,