diff --git a/discord/discord.c b/discord/discord.c index 77a1403001..b6cfdb77c1 100644 --- a/discord/discord.c +++ b/discord/discord.c @@ -15,6 +15,8 @@ #include "discord.h" +#include "../msg_hash.h" + static const char* APPLICATION_ID = "450822022025576457"; static int FrustrationLevel = 0; static int64_t start_time = 0; @@ -78,7 +80,7 @@ void discord_update(enum discord_presence presence) switch (presence) { case DISCORD_PRESENCE_MENU: - discord_presence.state = "In-Menu"; + discord_presence.state = msg_hash_to_str(MENU_ENUM_LABEL_VALUE_DISCORD_IN_MENU); discord_presence.largeImageKey = "icon"; discord_presence.instance = 0; discord_presence.startTimestamp = start_time; @@ -108,7 +110,7 @@ void discord_init(void) { DiscordEventHandlers handlers; - RARCH_LOG("[Discord] initializing\n"); + RARCH_LOG("[Discord] initializing ..\n"); start_time = time(0); memset(&handlers, 0, sizeof(handlers)); @@ -126,7 +128,7 @@ void discord_init(void) void discord_shutdown(void) { - RARCH_LOG("[Discord] shutting down\n"); + RARCH_LOG("[Discord] shutting down ..\n"); Discord_ClearPresence(); Discord_Shutdown(); discord_ready = false; diff --git a/intl/msg_hash_ar.h b/intl/msg_hash_ar.h index bb14f47a50..323081e429 100644 --- a/intl/msg_hash_ar.h +++ b/intl/msg_hash_ar.h @@ -3505,3 +3505,5 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_DETECT_CORE_LIST_OK_CURRENT_CORE, "Current core") MSG_HASH(MENU_ENUM_LABEL_VALUE_QT_MENU_SEARCH_CLEAR, "Clear") +MSG_HASH(MENU_ENUM_LABEL_VALUE_DISCORD_IN_MENU, + "In-Menu") diff --git a/intl/msg_hash_chs.h b/intl/msg_hash_chs.h index f9f2698dc3..ee9fc93080 100644 --- a/intl/msg_hash_chs.h +++ b/intl/msg_hash_chs.h @@ -3291,3 +3291,5 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_DETECT_CORE_LIST_OK_CURRENT_CORE, "Current core") MSG_HASH(MENU_ENUM_LABEL_VALUE_QT_MENU_SEARCH_CLEAR, "Clear") +MSG_HASH(MENU_ENUM_LABEL_VALUE_DISCORD_IN_MENU, + "In-Menu") diff --git a/intl/msg_hash_cht.h b/intl/msg_hash_cht.h index ec004b062d..7aa0d4c89c 100644 --- a/intl/msg_hash_cht.h +++ b/intl/msg_hash_cht.h @@ -3283,3 +3283,5 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_DETECT_CORE_LIST_OK_CURRENT_CORE, "Current core") MSG_HASH(MENU_ENUM_LABEL_VALUE_QT_MENU_SEARCH_CLEAR, "Clear") +MSG_HASH(MENU_ENUM_LABEL_VALUE_DISCORD_IN_MENU, + "In-Menu") diff --git a/intl/msg_hash_de.h b/intl/msg_hash_de.h index 5782efe320..4f6070c498 100644 --- a/intl/msg_hash_de.h +++ b/intl/msg_hash_de.h @@ -3397,3 +3397,5 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_DETECT_CORE_LIST_OK_CURRENT_CORE, "Current core") MSG_HASH(MENU_ENUM_LABEL_VALUE_QT_MENU_SEARCH_CLEAR, "Clear") +MSG_HASH(MENU_ENUM_LABEL_VALUE_DISCORD_IN_MENU, + "In-Menu") diff --git a/intl/msg_hash_eo.h b/intl/msg_hash_eo.h index 365592d0ef..87565c73c0 100644 --- a/intl/msg_hash_eo.h +++ b/intl/msg_hash_eo.h @@ -3156,3 +3156,5 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_DETECT_CORE_LIST_OK_CURRENT_CORE, "Current core") MSG_HASH(MENU_ENUM_LABEL_VALUE_QT_MENU_SEARCH_CLEAR, "Clear") +MSG_HASH(MENU_ENUM_LABEL_VALUE_DISCORD_IN_MENU, + "In-Menu") diff --git a/intl/msg_hash_es.h b/intl/msg_hash_es.h index 71ced5f1cf..ebfefe3eae 100644 --- a/intl/msg_hash_es.h +++ b/intl/msg_hash_es.h @@ -6375,4 +6375,6 @@ MSG_HASH( MSG_HASH( MENU_ENUM_SUBLABEL_ACHIEVEMENT_RESUME, "Continuar los logros para esta sesión (Esto desactivará los archivos de guardado, cámara lenta, trucos, rebobinado y pausa)" - ) \ No newline at end of file + ) +MSG_HASH(MENU_ENUM_LABEL_VALUE_DISCORD_IN_MENU, + "In-Menu") diff --git a/intl/msg_hash_fr.h b/intl/msg_hash_fr.h index 0f49a897e0..a8513a3f0f 100644 --- a/intl/msg_hash_fr.h +++ b/intl/msg_hash_fr.h @@ -3321,3 +3321,5 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_DETECT_CORE_LIST_OK_CURRENT_CORE, "Current core") MSG_HASH(MENU_ENUM_LABEL_VALUE_QT_MENU_SEARCH_CLEAR, "Clear") +MSG_HASH(MENU_ENUM_LABEL_VALUE_DISCORD_IN_MENU, + "In-Menu") diff --git a/intl/msg_hash_it.h b/intl/msg_hash_it.h index e9067c3ab1..4493b605b6 100644 --- a/intl/msg_hash_it.h +++ b/intl/msg_hash_it.h @@ -3379,3 +3379,5 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_DETECT_CORE_LIST_OK_CURRENT_CORE, "Core attuale") MSG_HASH(MENU_ENUM_LABEL_VALUE_QT_MENU_SEARCH_CLEAR, "Cancella") +MSG_HASH(MENU_ENUM_LABEL_VALUE_DISCORD_IN_MENU, + "In-Menu") diff --git a/intl/msg_hash_ja.h b/intl/msg_hash_ja.h index 12deade1a0..21a50de02e 100644 --- a/intl/msg_hash_ja.h +++ b/intl/msg_hash_ja.h @@ -3533,3 +3533,5 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_DETECT_CORE_LIST_OK_CURRENT_CORE, "Current core") MSG_HASH(MENU_ENUM_LABEL_VALUE_QT_MENU_SEARCH_CLEAR, "Clear") +MSG_HASH(MENU_ENUM_LABEL_VALUE_DISCORD_IN_MENU, + "In-Menu") diff --git a/intl/msg_hash_ko.h b/intl/msg_hash_ko.h index 5a67c3274d..f87e16ba60 100644 --- a/intl/msg_hash_ko.h +++ b/intl/msg_hash_ko.h @@ -3282,3 +3282,5 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_DETECT_CORE_LIST_OK_CURRENT_CORE, "Current core") MSG_HASH(MENU_ENUM_LABEL_VALUE_QT_MENU_SEARCH_CLEAR, "Clear") +MSG_HASH(MENU_ENUM_LABEL_VALUE_DISCORD_IN_MENU, + "In-Menu") diff --git a/intl/msg_hash_lbl.h b/intl/msg_hash_lbl.h index 34c9bbcd1d..b7be0fdeae 100644 --- a/intl/msg_hash_lbl.h +++ b/intl/msg_hash_lbl.h @@ -1513,3 +1513,5 @@ MSG_HASH(MENU_ENUM_LABEL_QUICK_MENU_OVERRIDE_OPTIONS, "quick_menu_override_options") MSG_HASH(MENU_ENUM_LABEL_DEFERRED_QUICK_MENU_OVERRIDE_OPTIONS, "deferred_quick_menu_override_options") +MSG_HASH(MENU_ENUM_LABEL_DISCORD_IN_MENU, + "discord_in_menu") diff --git a/intl/msg_hash_nl.h b/intl/msg_hash_nl.h index 461633672f..892eef8b6d 100644 --- a/intl/msg_hash_nl.h +++ b/intl/msg_hash_nl.h @@ -3158,3 +3158,5 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_DETECT_CORE_LIST_OK_CURRENT_CORE, "Current core") MSG_HASH(MENU_ENUM_LABEL_VALUE_QT_MENU_SEARCH_CLEAR, "Clear") +MSG_HASH(MENU_ENUM_LABEL_VALUE_DISCORD_IN_MENU, + "In-Menu") diff --git a/intl/msg_hash_pl.h b/intl/msg_hash_pl.h index 44793b64a9..e6d13973e1 100644 --- a/intl/msg_hash_pl.h +++ b/intl/msg_hash_pl.h @@ -3560,3 +3560,5 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_DETECT_CORE_LIST_OK_CURRENT_CORE, "Obecny rdzeń") MSG_HASH(MENU_ENUM_LABEL_VALUE_QT_MENU_SEARCH_CLEAR, "Oczyść") +MSG_HASH(MENU_ENUM_LABEL_VALUE_DISCORD_IN_MENU, + "In-Menu") diff --git a/intl/msg_hash_pt_br.h b/intl/msg_hash_pt_br.h index 2aa2286458..c56c5483c3 100644 --- a/intl/msg_hash_pt_br.h +++ b/intl/msg_hash_pt_br.h @@ -3716,3 +3716,5 @@ MSG_HASH(MENU_ENUM_SUBLABEL_ACHIEVEMENT_PAUSE, "Pausar conquistas para a sessão atual (Esta ação ativará Estados de Jogos, Trapaças, Rebobinagem, Pausa e Câmera Lenta).") MSG_HASH(MENU_ENUM_SUBLABEL_ACHIEVEMENT_RESUME, "Continuar conquistas para a sessão atual (Esta ação desabilitará Estados de Jogos, Trapaças, Rebobinagem, Pausa e Câmera Lenta e reiniciará o jogo atual).") +MSG_HASH(MENU_ENUM_LABEL_VALUE_DISCORD_IN_MENU, + "In-Menu") diff --git a/intl/msg_hash_pt_pt.h b/intl/msg_hash_pt_pt.h index 2722b79837..b32580e978 100644 --- a/intl/msg_hash_pt_pt.h +++ b/intl/msg_hash_pt_pt.h @@ -3256,3 +3256,5 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_DETECT_CORE_LIST_OK_CURRENT_CORE, "Current core") MSG_HASH(MENU_ENUM_LABEL_VALUE_QT_MENU_SEARCH_CLEAR, "Clear") +MSG_HASH(MENU_ENUM_LABEL_VALUE_DISCORD_IN_MENU, + "In-Menu") diff --git a/intl/msg_hash_ru.h b/intl/msg_hash_ru.h index 0278c538b2..ce884c314a 100644 --- a/intl/msg_hash_ru.h +++ b/intl/msg_hash_ru.h @@ -3340,3 +3340,5 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_DETECT_CORE_LIST_OK_CURRENT_CORE, "Current core") MSG_HASH(MENU_ENUM_LABEL_VALUE_QT_MENU_SEARCH_CLEAR, "Clear") +MSG_HASH(MENU_ENUM_LABEL_VALUE_DISCORD_IN_MENU, + "In-Menu") diff --git a/intl/msg_hash_us.h b/intl/msg_hash_us.h index c97a323a5a..e610be5092 100644 --- a/intl/msg_hash_us.h +++ b/intl/msg_hash_us.h @@ -3716,3 +3716,5 @@ MSG_HASH(MENU_ENUM_SUBLABEL_ACHIEVEMENT_PAUSE, "Pause achievements for current session (This action will enable savestates, cheats, rewind, pause, and slow-motion).") MSG_HASH(MENU_ENUM_SUBLABEL_ACHIEVEMENT_RESUME, "Resume achievements for current session (This action will disable savestates, cheats, rewind, pause, and slow-motion and reset the current game).") +MSG_HASH(MENU_ENUM_LABEL_VALUE_DISCORD_IN_MENU, + "In-Menu") diff --git a/intl/msg_hash_vn.h b/intl/msg_hash_vn.h index e92c734a9d..9bd3ae0a16 100644 --- a/intl/msg_hash_vn.h +++ b/intl/msg_hash_vn.h @@ -3313,3 +3313,5 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_DETECT_CORE_LIST_OK_CURRENT_CORE, "Current core") MSG_HASH(MENU_ENUM_LABEL_VALUE_QT_MENU_SEARCH_CLEAR, "Clear") +MSG_HASH(MENU_ENUM_LABEL_VALUE_DISCORD_IN_MENU, + "In-Menu") diff --git a/msg_hash.h b/msg_hash.h index b1b18f80e4..f99fd2ae17 100644 --- a/msg_hash.h +++ b/msg_hash.h @@ -424,6 +424,9 @@ enum msg_hash_enums MENU_LABEL(NO_HISTORY_AVAILABLE), + MENU_ENUM_LABEL_DISCORD_IN_MENU, + MENU_ENUM_LABEL_VALUE_DISCORD_IN_MENU, + MENU_ENUM_LABEL_VALUE_MIXER_ACTION_PLAY, MENU_ENUM_LABEL_VALUE_MIXER_ACTION_PLAY_LOOPED, MENU_ENUM_LABEL_VALUE_MIXER_ACTION_PLAY_SEQUENTIAL,