From a1bf46772a88ae4dc68d8da988968951df79755e Mon Sep 17 00:00:00 2001 From: bulzipke Date: Sat, 28 Sep 2024 03:26:55 +0900 Subject: [PATCH] Add east asian relay server --- intl/msg_hash_en.h | 4 ++++ intl/msg_hash_ko.h | 6 +++++- msg_hash.h | 1 + network/netplay/netplay_defines.h | 2 +- network/netplay/netplay_frontend.c | 1 + 5 files changed, 12 insertions(+), 2 deletions(-) diff --git a/intl/msg_hash_en.h b/intl/msg_hash_en.h index d3d2ee9e7cd..9120d1893ca 100644 --- a/intl/msg_hash_en.h +++ b/intl/msg_hash_en.h @@ -1155,6 +1155,10 @@ MSG_HASH( MENU_ENUM_LABEL_VALUE_NETPLAY_MITM_SERVER_LOCATION_4, "South-east Asia" ) +MSG_HASH( + MENU_ENUM_LABEL_VALUE_NETPLAY_MITM_SERVER_LOCATION_5, + "East Asia (Chuncheon, South Korea)" + ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETPLAY_TCP_UDP_PORT, "Net-play TCP Port" diff --git a/intl/msg_hash_ko.h b/intl/msg_hash_ko.h index f95028ab172..04199b77ea2 100644 --- a/intl/msg_hash_ko.h +++ b/intl/msg_hash_ko.h @@ -7443,9 +7443,13 @@ MSG_HASH( MENU_ENUM_LABEL_VALUE_NETPLAY_MITM_SERVER_LOCATION_4, "동남아시아" ) +MSG_HASH( + MENU_ENUM_LABEL_VALUE_NETPLAY_MITM_SERVER_LOCATION_5, + "동아시아 (춘천, 한국)" + ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETPLAY_MITM_SERVER_LOCATION_CUSTOM, - "사용자" + "직접 설정" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NETPLAY_IP_ADDRESS, diff --git a/msg_hash.h b/msg_hash.h index 822bfa72b43..521fae3e8b6 100644 --- a/msg_hash.h +++ b/msg_hash.h @@ -3825,6 +3825,7 @@ enum msg_hash_enums MENU_ENUM_LABEL_VALUE_NETPLAY_MITM_SERVER_LOCATION_2, MENU_ENUM_LABEL_VALUE_NETPLAY_MITM_SERVER_LOCATION_3, MENU_ENUM_LABEL_VALUE_NETPLAY_MITM_SERVER_LOCATION_4, + MENU_ENUM_LABEL_VALUE_NETPLAY_MITM_SERVER_LOCATION_5, MENU_ENUM_LABEL_VALUE_NETPLAY_MITM_SERVER_LOCATION_CUSTOM, MENU_LABEL(VIDEO_WINDOW_SHOW_DECORATIONS), MENU_LABEL(VIDEO_WINDOW_SAVE_POSITION), diff --git a/network/netplay/netplay_defines.h b/network/netplay/netplay_defines.h index 50c0307c470..ba3042dcd7e 100644 --- a/network/netplay/netplay_defines.h +++ b/network/netplay/netplay_defines.h @@ -35,7 +35,7 @@ #define NETPLAY_HOST_STR_LEN 32 #define NETPLAY_HOST_LONGSTR_LEN 256 -#define NETPLAY_MITM_SERVERS 5 +#define NETPLAY_MITM_SERVERS 6 #define NETPLAY_CHAT_MAX_MESSAGES 5 #define NETPLAY_CHAT_MAX_SIZE 96 diff --git a/network/netplay/netplay_frontend.c b/network/netplay/netplay_frontend.c index 9d726439b62..6c4c463df43 100644 --- a/network/netplay/netplay_frontend.c +++ b/network/netplay/netplay_frontend.c @@ -205,6 +205,7 @@ const mitm_server_t netplay_mitm_server_list[NETPLAY_MITM_SERVERS] = { { "madrid", MENU_ENUM_LABEL_VALUE_NETPLAY_MITM_SERVER_LOCATION_2 }, { "saopaulo", MENU_ENUM_LABEL_VALUE_NETPLAY_MITM_SERVER_LOCATION_3 }, { "singapore", MENU_ENUM_LABEL_VALUE_NETPLAY_MITM_SERVER_LOCATION_4 }, + { "chuncheon", MENU_ENUM_LABEL_VALUE_NETPLAY_MITM_SERVER_LOCATION_5 }, { "custom", MENU_ENUM_LABEL_VALUE_NETPLAY_MITM_SERVER_LOCATION_CUSTOM } };