Xbox Cloud Gaming app for PS5 Homebrew
C
Autoplay crashtest: a SIGSEGV on the home screen, for the console check
Rafael Abud Ferreira901734bb75b5
diff --git a/src/app/autoplay.cpp b/src/app/autoplay.cppindex 4dd8b43..f9a36f7 100644--- a/src/app/autoplay.cpp+++ b/src/app/autoplay.cpp@@ -14,6 +14,7 @@#include "util/log.h"#include <cmath>+#include <csignal>#include <cstdio>#include <cstdlib>@@ -87,6 +88,7 @@ void loadAutoplay() {if (opt == "confirmtest") g_autoplay.confirmTest = true;if (opt == "tunetest") g_autoplay.tuneTest = true;if (opt == "searchtest") g_autoplay.searchTest = true;+ if (opt == "crashtest") g_autoplay.crashTest = true;if (opt == "quicktest") g_autoplay.quickTest = true;if (opt == "scrolltest") g_autoplay.scrollTest = true;if (opt.rfind("locktitle=", 0) == 0) g_autoplay.lockTitle = opt.substr(10);@@ -582,6 +584,10 @@ void autoplayScreens(const ui::Canvas& canvas, uint64_t now) {saveCanvas("home.ppm");XC_LOGI("AUTOPLAY END: confirm test, on the %s screen", g_ui->screen() == ui::Screen::Home ? "home" : "WRONG");}+ if (g_autoplay.crashTest && uiSaved) {+ XC_LOGI("AUTOPLAY END: crash test (SIGSEGV now)");+ std::raise(SIGSEGV);+ }if (g_autoplay.quickTest && uiSaved) {g_autoplay.quickTest = false;ui::GameTile t;diff --git a/src/app/autoplay.h b/src/app/autoplay.hindex 9653761..9fd8224 100644--- a/src/app/autoplay.h+++ b/src/app/autoplay.h@@ -60,6 +60,7 @@ struct Autoplay {bool updateTest = false; // updatetest: accept the update pop-up, save update.ppm / updating.ppmbool updateSkip = false; // updateskip: "Not now" on the update pop-upbool settingsUpdate = false; // settingsupdate: Settings > Updates, Cross+ bool crashTest = false; // crashtest: a SIGSEGV on the home screen (the next start must offer its report)bool scrollTest = false; // scrolltest: the right stick and a touchpad swipe page through the lists (logged)bool quickTest = false; // quicktest: cross-gen pairs' badges, MOBA games, the lock on `lockTitle`std::string lockTitle; // locktitle=<xCloud title id>: logged playable or locked at oncediff --git a/src/app/worker.cpp b/src/app/worker.cppindex 8a3d163..50cd174 100644--- a/src/app/worker.cpp+++ b/src/app/worker.cpp@@ -564,7 +564,7 @@ void loadLibrary(xcloud::GssvClient& gssv) {if (!g_autoplay.title.empty() && g_autoplay.title != "BENCH" && g_autoplay.title != "UPDATE" && g_autoplay.title != "AUTOTEST" &&!g_autoplay.detailTest && !g_autoplay.libraryTest &&!g_autoplay.consolesTab && !g_autoplay.settingsTest &&- !g_autoplay.imeTest && !g_autoplay.vibeTest && !g_autoplay.searchTest && !g_autoplay.quickTest && !g_autoplay.scrollTest &&+ !g_autoplay.imeTest && !g_autoplay.vibeTest && !g_autoplay.searchTest && !g_autoplay.quickTest && !g_autoplay.crashTest && !g_autoplay.scrollTest &&!g_autoplay.gridTest && !g_autoplay.gameSettingsTest && !g_autoplay.publisherTest && !g_autoplay.friendsTest) {platform::sleepMs(6000); // leave the home screen up for ui.ppmui::GameTile tile;