Skip to content

Xbox Cloud Gaming app for PS5 Homebrew

C

Own Xbox: say so when its Remote Play is stuck

Rafael Abud Ferreiraa53365deee0e
diff --git a/src/app/ps5_main.cpp b/src/app/ps5_main.cpp
index 435dfcf..b7a0071 100644
--- a/src/app/ps5_main.cpp
+++ b/src/app/ps5_main.cpp
@@ -774,8 +774,13 @@ void worker() {
XC_LOGI("%s", result.c_str());
if (!failed || result.find("WaitingForServerToRegister") == std::string::npos) break;
}
- if (failed && (result.find("WaitingForServerToRegister") != std::string::npos ||
- result.find("ConsoleDidNotWake") != std::string::npos))
+ if (failed && result.find("Cloud Streaming Service to be ready") != std::string::npos)
+ // Reached the Xbox, but its streaming service is stuck
+ // (after "Turn off" mid-stream, it stayed on and never
+ // streamed again until restarted).
+ g_ui->showPlayError(ui::trf(ui::Str::StreamingStuck, tile.name), tile);
+ else if (failed && (result.find("WaitingForServerToRegister") != std::string::npos ||
+ result.find("ConsoleDidNotWake") != std::string::npos))
g_ui->showPlayError(ui::trf(ui::Str::WakeFailed, tile.name), tile);
else if (failed)
g_ui->showPlayError(result.rfind("ERROR: ", 0) == 0 ? result.substr(7) : result, tile);
diff --git a/src/ui/strings.cpp b/src/ui/strings.cpp
index cbc9a13..17eab23 100644
--- a/src/ui/strings.cpp
+++ b/src/ui/strings.cpp
@@ -176,6 +176,7 @@ constexpr Column kEnglish = {
"The stream was ended on the Xbox", // EndedOnXbox
"Another device took over the stream", // EndedByOtherDevice
"The Xbox was turned off", // EndedXboxOff
+ "%s got the request but its Remote Play didn't start. Restart the Xbox (Xbox button > Profile & system > Power > Restart console), then try again.", // StreamingStuck
};
constexpr Column kPortugueseBR = {
@@ -322,6 +323,7 @@ constexpr Column kPortugueseBR = {
"A transmissão foi encerrada no Xbox",
"Outro aparelho assumiu a transmissão",
"O Xbox foi desligado",
+ "%s recebeu o pedido, mas o jogo remoto dele não iniciou. Reinicie o Xbox (botão Xbox > Perfil e sistema > Energia > Reiniciar o console) e tente de novo.",
};
constexpr Column kSpanish = {
@@ -468,6 +470,7 @@ constexpr Column kSpanish = {
"La transmisión se terminó en la Xbox",
"Otro dispositivo tomó la transmisión",
"La Xbox se apagó",
+ "%s recibió la solicitud, pero su juego remoto no se inició. Reinicia la Xbox (botón Xbox > Perfil y sistema > Energía > Reiniciar la consola) y vuelve a intentarlo.",
};
constexpr Column kFrench = {
@@ -614,6 +617,7 @@ constexpr Column kFrench = {
"La diffusion a été arrêtée sur la Xbox",
"Un autre appareil a repris la diffusion",
"La Xbox a été éteinte",
+ "%s a reçu la demande, mais son jeu à distance n'a pas démarré. Redémarrez la Xbox (bouton Xbox > Profil et système > Alimentation > Redémarrer la console), puis réessayez.",
};
constexpr Column kGerman = {
@@ -760,6 +764,7 @@ constexpr Column kGerman = {
"Das Streaming wurde auf der Xbox beendet",
"Ein anderes Gerät hat das Streaming übernommen",
"Die Xbox wurde ausgeschaltet",
+ "%s hat die Anfrage erhalten, aber Remote Play ist nicht gestartet. Starte die Xbox neu (Xbox-Taste > Profil & System > Energie > Konsole neu starten) und versuche es erneut.",
};
constexpr Column kItalian = {
@@ -906,6 +911,7 @@ constexpr Column kItalian = {
"Lo streaming è stato terminato sulla Xbox",
"Un altro dispositivo ha preso lo streaming",
"La Xbox è stata spenta",
+ "%s ha ricevuto la richiesta, ma il gioco remoto non è partito. Riavvia la Xbox (pulsante Xbox > Profilo e sistema > Alimentazione > Riavvia console) e riprova.",
};
constexpr std::array<const Column*, kLangs> kTable = {&kEnglish, &kPortugueseBR, &kSpanish,
diff --git a/src/ui/strings.h b/src/ui/strings.h
index d9c20b9..ab4242b 100644
--- a/src/ui/strings.h
+++ b/src/ui/strings.h
@@ -153,6 +153,7 @@ enum class Str {
EndedOnXbox, // toast: the Xbox ended the stream
EndedByOtherDevice, // toast: another device took the stream over
EndedXboxOff, // toast: the Xbox was turned off during the stream
+ StreamingStuck, // "%s" = the console: its Remote Play service didn't start
Count
};