[Kernel] - restrict kXNotificationLiveConnectionChanged to startup
- allow for dashboard to show achievements and themes again.
This commit is contained in:
committed by
Radosław Gliński
parent
06456c20fc
commit
64b7695f52
@@ -920,7 +920,8 @@ void KernelState::RegisterNotifyListener(XNotifyListener* listener) {
|
|||||||
listener->EnqueueNotification(kXNotificationSystemTrayStateChanged,
|
listener->EnqueueNotification(kXNotificationSystemTrayStateChanged,
|
||||||
X_DVD_DISC_STATE::XBOX_360_GAME_DISC);
|
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,
|
listener->EnqueueNotification(kXNotificationLiveConnectionChanged,
|
||||||
0x80151802L);
|
0x80151802L);
|
||||||
listener->EnqueueNotification(kXNotificationLiveLinkStateChanged, 0);
|
listener->EnqueueNotification(kXNotificationLiveLinkStateChanged, 0);
|
||||||
|
|||||||
@@ -358,6 +358,7 @@ class KernelState {
|
|||||||
std::unordered_map<uint32_t, XThread*> threads_by_id_;
|
std::unordered_map<uint32_t, XThread*> threads_by_id_;
|
||||||
std::vector<object_ref<XNotifyListener>> notify_listeners_;
|
std::vector<object_ref<XNotifyListener>> notify_listeners_;
|
||||||
bool has_notified_startup_ = false;
|
bool has_notified_startup_ = false;
|
||||||
|
bool has_notified_live_startup_ = false;
|
||||||
|
|
||||||
object_ref<UserModule> executable_module_;
|
object_ref<UserModule> executable_module_;
|
||||||
std::vector<object_ref<KernelModule>> kernel_modules_;
|
std::vector<object_ref<KernelModule>> kernel_modules_;
|
||||||
|
|||||||
Reference in New Issue
Block a user