From c1990bc687dded312c415fb51b9ada6bb41e8471 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Sun, 23 Mar 2025 15:43:16 +0100 Subject: [PATCH] EXI: Make HLE BBA panic alerts translatable Also rewording the messages to make them clearer and fix typos. --- Source/Core/Core/HW/EXI/BBA/BuiltIn.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Source/Core/Core/HW/EXI/BBA/BuiltIn.cpp b/Source/Core/Core/HW/EXI/BBA/BuiltIn.cpp index 0ebfe8b4af..305ab6ee0c 100644 --- a/Source/Core/Core/HW/EXI/BBA/BuiltIn.cpp +++ b/Source/Core/Core/HW/EXI/BBA/BuiltIn.cpp @@ -483,7 +483,8 @@ void CEXIETHERNET::BuiltInBBAInterface::InitUDPPort(u16 port) if (ref->udp_socket.Bind(port, m_current_ip) != sf::Socket::Status::Done) { ERROR_LOG_FMT(SP1, "Couldn't open UDP socket"); - PanicAlertFmt("Could't open port {:x}, this game might not work proprely in LAN mode.", port); + PanicAlertFmtT( + "Couldn't open port {0}. This might stop the game's LAN mode from working properly.", port); return; } } @@ -513,8 +514,8 @@ void CEXIETHERNET::BuiltInBBAInterface::HandleUDPFrame(const Common::UDPPacket& if (ref->udp_socket.Bind(ntohs(udp_header.source_port), m_current_ip) != sf::Socket::Status::Done) { - PanicAlertFmt( - "Port {:x} is already in use, this game might not work as intented in LAN Mode.", + PanicAlertFmtT( + "Port {0} is already in use. This might stop the game's LAN mode from working properly.", htons(udp_header.source_port)); if (ref->udp_socket.Bind(sf::Socket::AnyPort, m_current_ip) != sf::Socket::Status::Done) {