[Kernel] - restrict kXNotificationLiveConnectionChanged to startup

- allow for dashboard to show achievements and themes again.
This commit is contained in:
The-Little-Wolf 2025-08-08 13:06:20 -07:00 committed by Radosław Gliński
parent 06456c20fc
commit 64b7695f52
2 changed files with 3 additions and 1 deletions

View File

@ -920,7 +920,8 @@ void KernelState::RegisterNotifyListener(XNotifyListener* listener) {
listener->EnqueueNotification(kXNotificationSystemTrayStateChanged,
X_DVD_DISC_STATE::XBOX_360_GAME_DISC);
}
if (listener->mask() & kXNotifyLive) {
if (!has_notified_live_startup_ && listener->mask() & kXNotifyLive) {
has_notified_live_startup_ = true;
listener->EnqueueNotification(kXNotificationLiveConnectionChanged,
0x80151802L);
listener->EnqueueNotification(kXNotificationLiveLinkStateChanged, 0);

View File

@ -358,6 +358,7 @@ class KernelState {
std::unordered_map<uint32_t, XThread*> threads_by_id_;
std::vector<object_ref<XNotifyListener>> notify_listeners_;
bool has_notified_startup_ = false;
bool has_notified_live_startup_ = false;
object_ref<UserModule> executable_module_;
std::vector<object_ref<KernelModule>> kernel_modules_;