Xbox Cloud Gaming app for PS5 Homebrew
C
Rename ps5_main.cpp to app_core.cpp and ps5_app.h to app_state.h
Rafael Abud Ferreiraf8c134638d7f
diff --git a/CMakeLists.txt b/CMakeLists.txtindex 3782e53..f8a1e58 100644--- a/CMakeLists.txt+++ b/CMakeLists.txt@@ -102,7 +102,7 @@ if(XCLOUD_PS5)# The app itself: linked into eboot.bin by tools/ps5/link.sh.add_library(xcloud_app STATIC- src/app/ps5_main.cpp+ src/app/app_core.cppsrc/app/worker.cppsrc/app/stream_screen.cppsrc/app/price_loop.cppdiff --git a/src/app/ps5_main.cpp b/src/app/app_core.cppsimilarity index 99%rename from src/app/ps5_main.cpprename to src/app/app_core.cppindex 2131efb..622b16e 100644--- a/src/app/ps5_main.cpp+++ b/src/app/app_core.cpp@@ -5,10 +5,10 @@// worker.cpp (all the network work, on its own thread), stream_screen.cpp// (the game's menu, gestures and controllers while streaming),// price_loop.cpp (store prices) and autoplay.cpp (the unattended tests).+#include "app/app_state.h"#include "app/autoplay.h"#include "app/crash_guard.h"#include "app/report.h"-#include "app/ps5_app.h"#include "app/settings.h"#include "app/stream_screen.h"#include "app/updater.h"diff --git a/src/app/ps5_app.h b/src/app/app_state.hsimilarity index 96%rename from src/app/ps5_app.hrename to src/app/app_state.hindex 59984e2..717bd88 100644--- a/src/app/ps5_app.h+++ b/src/app/app_state.h@@ -1,9 +1,9 @@// SPDX-License-Identifier: GPL-3.0-or-later// Copyright (C) 2026 RafaelNGP-// What the PS5 app's pieces share: ps5_main.cpp (the main thread: pad, UI,+// What the app's pieces share: app_core.cpp (the main thread: pad, UI,// drawing), worker.cpp (the worker thread: all the network work),// stream_screen.cpp (the streaming screen) and price_loop.cpp. Defined in-// ps5_main.cpp.+// app_core.cpp.#pragma once#include "app/settings.h"diff --git a/src/app/autoplay.cpp b/src/app/autoplay.cppindex 04108ad..d471bbf 100644--- a/src/app/autoplay.cpp+++ b/src/app/autoplay.cpp@@ -4,7 +4,7 @@#include "app/autoplay.h"#include "ui/input_mode.h"-#include "app/ps5_app.h"+#include "app/app_state.h"#include "display/display.h"#include "media/audio_in.h"#include "media/decoder.h"diff --git a/src/app/price_loop.cpp b/src/app/price_loop.cppindex bd95354..54cd7d4 100644--- a/src/app/price_loop.cpp+++ b/src/app/price_loop.cpp@@ -3,7 +3,7 @@// Store prices for the games to buy as they come on screen, kept a day in// <dataDir>/prices.json; the same thread fetches the description of an// opened game that has none yet.-#include "app/ps5_app.h"+#include "app/app_state.h"#include "platform/platform.h"#include "ui/strings.h"#include "util/json.h"diff --git a/src/app/stream_screen.cpp b/src/app/stream_screen.cppindex 456b1e5..ccdbb04 100644--- a/src/app/stream_screen.cpp+++ b/src/app/stream_screen.cpp@@ -3,8 +3,8 @@// The streaming screen on the main thread; see stream_screen.h.#include "app/stream_screen.h"+#include "app/app_state.h"#include "app/autoplay.h"-#include "app/ps5_app.h"#include "app/stream_player.h"#include "display/display.h"#include "input/kbm.h"diff --git a/src/app/worker.cpp b/src/app/worker.cppindex f7941d5..5b34ffe 100644--- a/src/app/worker.cpp+++ b/src/app/worker.cpp@@ -3,10 +3,10 @@// The worker thread: sign-in, the library, the account's consoles, and// playing a title (queue -> /connect -> Provisioned -> StreamPlayer). It// owns AuthManager and the GssvClients and does all the network work.+#include "app/app_state.h"#include "app/autoplay.h"#include "app/crash_guard.h"#include "app/library.h"-#include "app/ps5_app.h"#include "app/stream_player.h"#include "app/update_check.h"#include "app/updater.h"