Skip to content

Xbox Cloud Gaming app for PS5 Homebrew

C

Reconnect after a lost connection, on the same cloud session

Rafael Abud Ferreira98508c6daee1
diff --git a/ROADMAP.md b/ROADMAP.md
index 35fb6d9..a5e8fe1 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -4,7 +4,7 @@ Where PSBox Cloud Gaming goes next, most valuable first. Each item says why it
matters, what "done" looks like, and how it is measured on the console.
Status: **next** (being worked on), **planned**, **later**, **dropped**.
-Last update: 2026-10-08, after v0.5.0.
+Last update: 2026-10-08, after v0.5.0 (items 1-3 on the way to v0.6.0).
## Now
@@ -35,14 +35,17 @@ CPU, as BlackBearReloaded's research measured too. So no latency gain at
logs it), with the PS5's own structure layouts and memory types.
- Becomes the way to go if 1440p / 4K or HEVC streams are ever granted.
-### 3. Reconnect after a network drop — next
-When the connection drops, the stream ends and the app returns home, though
-the cloud session stays alive on the server for a few minutes.
+### 3. Reconnect after a network drop — done (v0.6.0)
+As the xbox.com client does: when the connection drops (a data channel or
+WebRTC fails, or no video packet for 3 s), the stream tries again up to 20
+times a second apart; each time it checks that the cloud session is still
+`Provisioned` / `ReadyToConnect` and opens a new WebRTC connection on it.
+The game goes on where it was. The server ending the session (idle kick,
+the game closed) still ends the stream.
-- Detect the drop (data channels closed / no RTP for N seconds), show
- "Reconnecting...", and connect to the same session again (new WebRTC
- negotiation) without restarting the game.
-- Done when unplugging the network for ~10 s brings the same game back.
+- Console test (autoplay `droptest`, the connection dropped at 20 s):
+ reconnected on the first attempt, ~8 s of frozen picture, then 60 fps again.
+- To check by hand: a real outage (cable out / Wi-Fi off for ~10 s).
## Next
diff --git a/src/app/cli_main.cpp b/src/app/cli_main.cpp
index e389fd4..9fef18f 100644
--- a/src/app/cli_main.cpp
+++ b/src/app/cli_main.cpp
@@ -192,7 +192,7 @@ int cmdStream(auth::AuthManager& am, const std::string& titleId, int seconds, co
cb.vibration = [](const stream::Vibration& v) {
XC_LOGI("rumble %u/%u for %ums", v.leftMotor, v.rightMotor, v.durationMs);
};
- cb.closed = [&](const std::string&) { closed = true; };
+ cb.closed = [&](const std::string&, bool) { closed = true; };
int rc = 1;
{
diff --git a/src/app/ps5_main.cpp b/src/app/ps5_main.cpp
index e121acd..0b83d28 100644
--- a/src/app/ps5_main.cpp
+++ b/src/app/ps5_main.cpp
@@ -144,7 +144,8 @@ void updateTextInput(app::StreamPlayer* player) {
// decoded frames and logs "AUTOPLAY END". Options, comma-separated: nosimd,
// dump, repeat, idle (no A presses), threads=N (H.264 decoder threads),
// rumbletest (rumbles the pad for 1.5 s at start), triggertest (the triggers
-// for 3 s), vibetest (each motor and trigger alone, announced, no game), detailtest (opens a game to
+// for 3 s), vibetest (each motor and trigger alone, announced, no game),
+// droptest (the connection dropped at 20 s: the stream reconnects), detailtest (opens a game to
// buy far down the list instead of playing, saves detail.ppm), imetest (opens
// the system keyboard on the home screen), menutest (in the game: the menu,
// 720p, back to 1080p), res=720p|1080p|1080p-hq|1440p, sharp=0..3 and
@@ -160,6 +161,7 @@ bool g_autoplayDetailTest = false; // open a game to buy far down the list, sav
bool g_autoplayLibraryTest = false; // open "Your games", save it at 4 s and 25 s
bool g_autoplayVkTest = false; // the GPU presenting instead of the CPU display
bool g_autoplayCpuDisplay = false;
+bool g_autoplayDropTest = false; // droptest: the connection dropped at 20 s
bool g_autoplayHwDecode = false; // hwdecode: the hardware decoder alongside, logged // the CPU display even where the GPU comes up
bool g_autoplayVibeTest = false; // each motor alone, with a notification
bool g_autoplayImeTest = false; // open the system keyboard on the home screen
@@ -193,6 +195,7 @@ void loadAutoplay() {
if (opt == "vktest") g_autoplayVkTest = true;
if (opt == "cpudisplay") g_autoplayCpuDisplay = true;
if (opt == "hwdecode") g_autoplayHwDecode = true;
+ if (opt == "droptest") g_autoplayDropTest = true;
if (opt.rfind("swap=", 0) == 0) display::gpu::setSwapImages(std::atoi(opt.c_str() + 5));
if (opt == "nopace") display::gpu::setPresentWait(false);
if (opt == "detailtest") g_autoplayDetailTest = true;
@@ -292,6 +295,11 @@ std::string stream(xcloud::GssvClient& gssv) {
}
bool press = !g_autoplayIdle && ((elapsed >= 15000 && elapsed < 15300) || (elapsed >= 20000 && elapsed < 20300));
if (press != g_syntheticA.exchange(press)) XC_LOGI("autoplay: A %s", press ? "down" : "up");
+ static bool dropped = false;
+ if (g_autoplayDropTest && !dropped && elapsed >= 20000) {
+ dropped = true;
+ player.simulateDrop();
+ }
if (!snapshot2 && elapsed >= 26000) {
snapshot2 = true;
player.requestSnapshot(platform::dataDir() + "/frame2.ppm");
@@ -802,6 +810,7 @@ int main(int argc, char** argv) {
static constexpr int kSharpAmount[] = {0, 96, 176, 256};
bool padReleased = true;
bool padAttached[input::kMaxPads] = {}; // controllers 1..3 announced to the stream
+ uint32_t playerReconnects = 0;
uint64_t padsCheckedAt = 0;
unsigned padChecks = 0; // false from the menu/keyboard until the buttons are let go
uint32_t overlaySeq = 0; // g_infoSeq + 1 when drawn; 0 = redraw
@@ -869,9 +878,14 @@ int main(int argc, char** argv) {
if (g_ui->screen() == ui::Screen::Streaming) {
std::lock_guard<std::mutex> lock(g_playerMutex);
+ if (g_player != overlayPlayer || (g_player && g_player->reconnects() != playerReconnects)) {
+ // A new stream, or a new session after a reconnection: the
+ // other controllers are announced again.
+ for (bool& a : padAttached) a = false;
+ playerReconnects = g_player ? g_player->reconnects() : 0;
+ }
if (g_player != overlayPlayer) { // a new stream
overlayPlayer = g_player;
- for (bool& a : padAttached) a = false;
menu.close();
std::lock_guard<std::mutex> settingsLock(g_settingsMutex);
streamResolution = g_settings.resolution == "720p" ? 1 : g_settings.resolution == "1440p" ? 2 : 0;
diff --git a/src/app/stream_player.cpp b/src/app/stream_player.cpp
index 6abfdac..a42d46b 100644
--- a/src/app/stream_player.cpp
+++ b/src/app/stream_player.cpp
@@ -35,7 +35,23 @@ constexpr int kMaxFullStreak = 30; // frames shown one refresh late before drop
struct StreamPlayer::Impl {
xcloud::GssvClient& gssv;
- std::unique_ptr<stream::StreamSession> session;
+ // The WebRTC session: replaced when the connection drops and the stream
+ // reconnects (worker thread), read by the video, input and main threads.
+ mutable std::mutex sessionMutex;
+ std::shared_ptr<stream::StreamSession> session;
+ std::shared_ptr<stream::StreamSession> current() const {
+ std::lock_guard<std::mutex> lock(sessionMutex);
+ return session;
+ }
+ stream::StreamCallbacks callbacks;
+ stream::StreamOptions options;
+ // Reconnecting after a lost connection, as the xbox.com client does: up
+ // to 20 attempts a second apart while the cloud session is still there.
+ std::atomic<bool> reconnecting{false};
+ int reconnectAttempts = 0;
+ std::atomic<uint32_t> reconnects{0};
+ uint64_t lastRtpPackets = 0;
+ int silentTicks = 0;
std::mutex mutex;
std::condition_variable cv;
@@ -177,7 +193,7 @@ struct StreamPlayer::Impl {
stream::FrameMetadata meta;
meta.serverDataKey = frame.rtpTimestamp;
meta.firstPacketArrivalMs = frame.arrivalMs;
- meta.submittedMs = session->clockMs();
+ meta.submittedMs = stream::clockMs();
inFlight.push_back(meta);
if (inFlight.size() > 16) inFlight.pop_front();
uint64_t t0 = platform::nowUs();
@@ -192,7 +208,7 @@ struct StreamPlayer::Impl {
known = true;
break;
}
- meta.decodedMs = session->clockMs();
+ meta.decodedMs = stream::clockMs();
}
decodeUs += t1 - t0;
++decodeCalls;
@@ -259,8 +275,8 @@ struct StreamPlayer::Impl {
}
}
}
- meta.renderedMs = session->clockMs();
- if (known) session->reportFrame(meta);
+ meta.renderedMs = stream::clockMs();
+ if (auto s = current(); s && known) s->reportFrame(meta);
if (decodedFrames % 600 == 1)
XC_LOGI("frame %u: queued %.1f, decoded %.1f, shown %.1f ms after arrival", meta.serverDataKey,
meta.submittedMs - meta.firstPacketArrivalMs, meta.decodedMs - meta.firstPacketArrivalMs,
@@ -291,7 +307,7 @@ struct StreamPlayer::Impl {
frames.clear();
keyframeWanted = true;
}
- frames.push_back({std::vector<uint8_t>(d, d + n), rtpTimestamp, session->clockMs(), platform::nowUs()});
+ frames.push_back({std::vector<uint8_t>(d, d + n), rtpTimestamp, stream::clockMs(), platform::nowUs()});
cv.notify_one();
};
cb.audio = [this](const uint8_t* d, size_t n, uint32_t) {
@@ -317,7 +333,15 @@ struct StreamPlayer::Impl {
cb.idleWarning = [](int seconds) {
platform::notify(ui::trf(ui::Str::IdleWarning, std::to_string(seconds)));
};
- cb.closed = [this](const std::string& reason) { end(reason); };
+ cb.closed = [this](const std::string& reason, bool recoverable) {
+ // A lost connection: the worker's tick() reconnects. The server
+ // ending the session (or no game left) ends the stream.
+ if (recoverable && running) {
+ if (!reconnecting.exchange(true)) XC_LOGW("connection lost (%s): reconnecting", reason.c_str());
+ } else {
+ end(reason);
+ }
+ };
// With the console's keyboard, the game's text fields use it;
// otherwise the server draws the Xbox keyboard into the picture.
if (platform::systemKeyboardAvailable()) {
@@ -347,7 +371,12 @@ struct StreamPlayer::Impl {
: gssv.resolution() == xcloud::Resolution::P1080HQ ? 30000000
: 25000000;
if (const char* loss = std::getenv("XC_SIM_LOSS")) opts.simulatedVideoLoss = std::atoi(loss);
- session = std::make_unique<stream::StreamSession>(gssv, cb, opts);
+ callbacks = cb;
+ options = opts;
+ {
+ std::lock_guard<std::mutex> lock(sessionMutex);
+ session = std::make_shared<stream::StreamSession>(gssv, cb, opts);
+ }
running = true;
if (!platform::startThread(videoThread, [this] { videoLoop(); }) ||
!platform::startThread(audioThread, [this] { audioLoop(); }, 1u << 20)) {
@@ -355,13 +384,61 @@ struct StreamPlayer::Impl {
running = false;
return false;
}
- if (!session->start(err)) {
+ if (!current()->start(err)) {
end(err);
return false;
}
return true;
}
+ // One reconnection attempt (worker thread, from tick()).
+ void reconnect() {
+ if (reconnectAttempts == 0) platform::notify(ui::tr(ui::Str::Reconnecting));
+ if (++reconnectAttempts > 20) {
+ end("the connection was lost and couldn't be restored");
+ return;
+ }
+ // Only while the cloud session is still there to connect to.
+ xcloud::SessionStatus status;
+ std::string err;
+ if (!gssv.sessionState(status, err)) {
+ XC_LOGW("reconnect %d: no session state (%s)", reconnectAttempts, err.c_str());
+ return; // the network may not be back yet
+ }
+ if (status.state != xcloud::SessionState::Provisioned && status.state != xcloud::SessionState::ReadyToConnect) {
+ end("the session ended on the server while reconnecting (" + status.raw + ")");
+ return;
+ }
+ std::shared_ptr<stream::StreamSession> old;
+ {
+ std::lock_guard<std::mutex> lock(sessionMutex);
+ old.swap(session);
+ }
+ if (old) old->close();
+ old.reset();
+ stream::StreamOptions opts = options;
+ opts.connectTimeoutMs = 8000;
+ auto next = std::make_shared<stream::StreamSession>(gssv, callbacks, opts);
+ // Cleared first: the new session's own failure must count again.
+ reconnecting = false;
+ if (!next->start(err)) {
+ XC_LOGW("reconnect %d failed: %s", reconnectAttempts, err.c_str());
+ reconnecting = true;
+ return;
+ }
+ {
+ std::lock_guard<std::mutex> lock(sessionMutex);
+ session = next;
+ }
+ XC_LOGI("reconnected after %d attempt(s)", reconnectAttempts);
+ reconnectAttempts = 0;
+ silentTicks = 0;
+ lastRtpPackets = 0;
+ ++reconnects;
+ keyframeWanted = true;
+ platform::notify(ui::tr(ui::Str::Reconnected));
+ }
+
// Returns true when a snapshot was taken: the caller then saves what the
// screen shows too (saveScreen()).
bool saveSnapshotIfAsked(const media::Picture& pic) {
@@ -406,24 +483,41 @@ struct StreamPlayer::Impl {
// Video thread only (data channel sends are thread-safe).
void requestKeyframeIfWanted() {
uint64_t now = platform::nowMs();
- if (keyframeWanted && now - lastKeyframeRequestMs > 500 && session) {
+ if (keyframeWanted && now - lastKeyframeRequestMs > 500) {
+ auto s = current();
+ if (!s) return;
keyframeWanted = false;
lastKeyframeRequestMs = now;
++keyframeRequests;
- session->requestKeyframe();
+ s->requestKeyframe();
}
}
+ // About once a second (worker thread).
void tick() {
- if (session) session->tick();
+ if (!running) return;
+ if (reconnecting) return reconnect();
+ auto s = current();
+ if (!s) return;
+ s->tick();
+ // xCloud sends video all the time, even for a still picture: three
+ // seconds without a packet is a dead connection, long before WebRTC
+ // notices.
+ uint64_t packets = s->videoStats().packets;
+ silentTicks = packets == lastRtpPackets ? silentTicks + 1 : 0;
+ lastRtpPackets = packets;
+ if (silentTicks >= 3 && !reconnecting.exchange(true)) XC_LOGW("no video for 3 s: reconnecting");
}
void stop() {
end("stopped");
- if (session) session->close();
+ if (auto s = current()) s->close();
if (videoThread.joinable()) videoThread.join();
if (audioThread.joinable()) audioThread.join();
- session.reset();
+ {
+ std::lock_guard<std::mutex> lock(sessionMutex);
+ session.reset();
+ }
media::audioStop();
for (int i = 0; i < input::kMaxPads; ++i) {
input::setRumble(0, 0, 0, i);
@@ -444,7 +538,8 @@ std::string StreamPlayer::endReason() const {
}
void StreamPlayer::sendInput(const input::ControllerState& p, int index) {
- if (!impl_->session || !impl_->running) return;
+ auto s = impl_->current();
+ if (!s || !impl_->running) return;
stream::GamepadFrame f;
f.index = static_cast<uint8_t>(index);
auto set = [&](bool on, uint16_t bit) {
@@ -470,11 +565,11 @@ void StreamPlayer::sendInput(const input::ControllerState& p, int index) {
f.rightY = -p.rightStickY;
f.leftTrigger = p.triggerL2;
f.rightTrigger = p.triggerR2;
- impl_->session->sendGamepad(f);
+ s->sendGamepad(f);
}
void StreamPlayer::setPadConnected(int index, bool connected) {
- if (impl_->session && impl_->running) impl_->session->setGamepadConnected(index, connected);
+ if (auto s = impl_->current(); s && impl_->running) s->setGamepadConnected(index, connected);
}
bool StreamPlayer::takeTextInput(stream::TextInputRequest& out) {
@@ -493,18 +588,25 @@ bool StreamPlayer::textInputWithdrawn(const std::string& id) {
}
void StreamPlayer::answerTextInput(const std::string& id, bool accepted, const std::string& text) {
- if (textInputWithdrawn(id) || !impl_->session) return;
+ auto s = impl_->current();
+ if (textInputWithdrawn(id) || !s) return;
XC_LOGI("text input %s", accepted ? "sent" : "cancelled");
if (accepted)
- impl_->session->completeTextInput(id, text);
+ s->completeTextInput(id, text);
else
- impl_->session->cancelTextInput(id);
+ s->cancelTextInput(id);
}
void StreamPlayer::requestKeyframe() { impl_->keyframeWanted = true; }
+uint32_t StreamPlayer::reconnects() const { return impl_->reconnects; }
+
+void StreamPlayer::simulateDrop() {
+ if (auto s = impl_->current()) s->simulateDrop();
+}
+
void StreamPlayer::requestResolution(const std::string& alias) {
- if (impl_->session) impl_->session->requestResolution(alias);
+ if (auto s = impl_->current()) s->requestResolution(alias);
}
void StreamPlayer::tick() { impl_->tick(); }
@@ -549,8 +651,8 @@ StreamPlayer::Stats StreamPlayer::stats() const {
uint64_t dn = impl_->displayCount.exchange(0), du2 = impl_->displayUs.exchange(0);
st.displayAvgUs = dn ? du2 / dn : 0;
st.displayMaxUs = impl_->displayMaxUs.exchange(0);
- if (impl_->session) { // the caller's thread is the one that stops the player
- const auto& v = impl_->session->videoStats();
+ if (auto s = impl_->current()) {
+ const auto& v = s->videoStats();
st.rtpPackets = v.packets;
st.rtpLost = v.lost;
st.rtpRecovered = v.recovered;
@@ -558,7 +660,7 @@ StreamPlayer::Stats StreamPlayer::stats() const {
st.rtpDroppedFrames = v.framesDropped;
st.keyframeRequests += v.keyframeRequests;
st.rtpKbps = v.receiveRate / 1000;
- st.rttMs = impl_->session->rttMs();
+ st.rttMs = s->rttMs();
st.rembKbps = v.estimate / 1000;
}
{
diff --git a/src/app/stream_player.h b/src/app/stream_player.h
index 5c113c3..149dfc7 100644
--- a/src/app/stream_player.h
+++ b/src/app/stream_player.h
@@ -37,6 +37,11 @@ public:
void answerTextInput(const std::string& id, bool accepted, const std::string& text);
// A new key frame (a clean picture), as after packet loss.
void requestKeyframe();
+ // How many times the stream reconnected after losing the connection (a
+ // new session: controllers 1..3 must be announced again).
+ uint32_t reconnects() const;
+ // Test hook: drops the connection as a network outage would.
+ void simulateDrop();
// Another stream tier mid-session: "720", "720HQ", "1080", "1080HQ", "1440".
void requestResolution(const std::string& alias);
// Keepalives etc.; about once a second from the thread owning `gssv`.
diff --git a/src/stream/stream_session.cpp b/src/stream/stream_session.cpp
index 1e89181..da54658 100644
--- a/src/stream/stream_session.cpp
+++ b/src/stream/stream_session.cpp
@@ -124,7 +124,6 @@ struct StreamSession::Impl {
std::atomic<bool> open{false};
std::atomic<bool> closedNotified{false};
std::atomic<uint32_t> inputSequence{1};
- std::chrono::steady_clock::time_point epoch = std::chrono::steady_clock::now();
uint64_t lastKeepaliveMs = 0;
uint64_t lastKeyframeMs = 0;
VideoReceiveStats videoStats;
@@ -133,11 +132,9 @@ struct StreamSession::Impl {
Impl(xcloud::GssvClient& g, StreamCallbacks c, StreamOptions o) : gssv(g), cb(std::move(c)), opt(o) {}
- double nowMs() const {
- return std::chrono::duration<double, std::milli>(std::chrono::steady_clock::now() - epoch).count();
- }
+ double nowMs() const { return stream::clockMs(); }
- void fail(const std::string& reason) {
+ void fail(const std::string& reason, bool recoverable = true) {
{
std::lock_guard<std::mutex> lock(mutex);
if (!failed) {
@@ -149,7 +146,7 @@ struct StreamSession::Impl {
open = false;
if (!closedNotified.exchange(true)) {
XC_LOGW("stream closed: %s", reason.c_str());
- if (cb.closed) cb.closed(reason);
+ if (cb.closed) cb.closed(reason, recoverable);
}
}
@@ -333,9 +330,10 @@ struct StreamSession::Impl {
// The game itself quit (or failed to start) on the server.
char hr[16];
std::snprintf(hr, sizeof hr, "0x%08X", static_cast<unsigned>((*content)["hr"].asInt()));
- fail(std::string("the game closed on the server (") + hr + ")");
+ fail(std::string("the game closed on the server (") + hr + ")", false);
} else {
- fail(reason.empty() ? "the server ended the session" : "the server ended the session (" + reason + ")");
+ fail(reason.empty() ? "the server ended the session" : "the server ended the session (" + reason + ")",
+ false);
}
} else if (target == "/streaming/systemUi/messages/ShowVirtualKeyboard" && cb.textInput) {
auto content = json::parse((*j)["content"].str());
@@ -661,7 +659,17 @@ void StreamSession::reportFrame(const FrameMetadata& frame) {
Impl::sendBinary(impl_->input, metadataReport(impl_->inputSequence++, impl_->nowMs(), {frame}));
}
-double StreamSession::clockMs() const { return impl_->nowMs(); }
+double StreamSession::clockMs() const { return stream::clockMs(); }
+
+void StreamSession::simulateDrop() {
+ XC_LOGW("test: dropping the connection");
+ if (impl_->pc) impl_->pc->close();
+}
+
+double clockMs() {
+ static const auto epoch = std::chrono::steady_clock::now();
+ return std::chrono::duration<double, std::milli>(std::chrono::steady_clock::now() - epoch).count();
+}
void StreamSession::completeTextInput(const std::string& id, const std::string& text) {
json::Value v = json::Value::object();
diff --git a/src/stream/stream_session.h b/src/stream/stream_session.h
index 08b0f96..4ca0921 100644
--- a/src/stream/stream_session.h
+++ b/src/stream/stream_session.h
@@ -39,8 +39,10 @@ struct StreamCallbacks {
// own); `textInputCancelled` when the game withdraws one.
std::function<void(const TextInputRequest&)> textInput;
std::function<void(const std::string& id)> textInputCancelled;
- // The stream ended (server disconnect, connection lost). Called once.
- std::function<void(const std::string& reason)> closed;
+ // The stream ended. Called once. `recoverable`: the connection was lost
+ // (the cloud session may still be there to reconnect to); false when
+ // the server ended it (idle kick, the game closed).
+ std::function<void(const std::string& reason, bool recoverable)> closed;
};
struct StreamOptions {
@@ -65,6 +67,10 @@ struct StreamOptions {
// port it embeds. Returns false for anything else.
bool decodeTeredo(const std::string& ipv6, std::string& ipv4, int& port);
+// Milliseconds on a clock shared by every session of the process (input and
+// frame reports carry it; it must not restart when a session reconnects).
+double clockMs();
+
class StreamSession {
public:
StreamSession(xcloud::GssvClient& gssv, StreamCallbacks callbacks, StreamOptions options = {});
@@ -82,8 +88,10 @@ public:
void requestKeyframe();
// A frame shown: its timings go back to the server (see FrameMetadata).
void reportFrame(const FrameMetadata& frame);
- // The clock FrameMetadata times are on, in ms.
+ // The clock FrameMetadata times are on, in ms (stream::clockMs()).
double clockMs() const;
+ // Test hook: drops the connection as a network outage would.
+ void simulateDrop();
void completeTextInput(const std::string& id, const std::string& text);
void cancelTextInput(const std::string& id);
// Another stream tier mid-session (StreamOptions::resolutionAlias).
diff --git a/src/ui/strings.cpp b/src/ui/strings.cpp
index a3b9ca3..2311381 100644
--- a/src/ui/strings.cpp
+++ b/src/ui/strings.cpp
@@ -147,6 +147,8 @@ constexpr Column kEnglish = {
"Controller %s disconnected", // PadDisconnected
"Block smoothing", // MenuDeband
"On screen after", // StatOnScreen
+ "Connection lost: reconnecting...", // Reconnecting
+ "Reconnected", // Reconnected
};
constexpr Column kPortugueseBR = {
@@ -264,6 +266,8 @@ constexpr Column kPortugueseBR = {
"Controle %s desconectado",
"Suavização de blocos",
"Na tela após",
+ "Conexão perdida: reconectando...",
+ "Reconectado",
};
constexpr Column kSpanish = {
@@ -381,6 +385,8 @@ constexpr Column kSpanish = {
"Mando %s desconectado",
"Suavizado de bloques",
"En pantalla tras",
+ "Conexión perdida: reconectando...",
+ "Reconectado",
};
constexpr Column kFrench = {
@@ -498,6 +504,8 @@ constexpr Column kFrench = {
"Manette %s déconnectée",
"Lissage des blocs",
"À l'écran après",
+ "Connexion perdue : reconnexion...",
+ "Reconnecté",
};
constexpr Column kGerman = {
@@ -615,6 +623,8 @@ constexpr Column kGerman = {
"Controller %s getrennt",
"Blockglättung",
"Auf dem Bildschirm nach",
+ "Verbindung verloren: neu verbinden...",
+ "Wieder verbunden",
};
constexpr Column kItalian = {
@@ -732,6 +742,8 @@ constexpr Column kItalian = {
"Controller %s disconnesso",
"Attenuazione blocchi",
"Sullo schermo dopo",
+ "Connessione persa: riconnessione...",
+ "Riconnesso",
};
constexpr std::array<const Column*, kLangs> kTable = {&kEnglish, &kPortugueseBR, &kSpanish,
diff --git a/src/ui/strings.h b/src/ui/strings.h
index 07d59bb..7433a57 100644
--- a/src/ui/strings.h
+++ b/src/ui/strings.h
@@ -124,6 +124,8 @@ enum class Str {
PadDisconnected, // "%s" = "2 (user name)"
MenuDeband, // smoothing of compression blocks (deband)
StatOnScreen, // network arrival to on the TV
+ Reconnecting, // the connection dropped mid-game
+ Reconnected,
Count
};