[Kernel] Initial XMP Notifications
This commit is contained in:
@@ -1034,6 +1034,13 @@ void KernelState::RegisterNotifyListener(XNotifyListener* listener) {
|
||||
0x001510F1L);
|
||||
listener->EnqueueNotification(kXNotificationLiveLinkStateChanged, 0);
|
||||
}
|
||||
|
||||
if (!has_notified_xmp_startup_ && listener->mask() & kXNotifyXmp) {
|
||||
has_notified_xmp_startup_ = true;
|
||||
listener->EnqueueNotification(kXNotificationXmpStateChanged, 0);
|
||||
listener->EnqueueNotification(kXNotificationXmpPlaybackControllerChanged,
|
||||
1);
|
||||
}
|
||||
}
|
||||
|
||||
void KernelState::UnregisterNotifyListener(XNotifyListener* listener) {
|
||||
|
||||
@@ -366,6 +366,7 @@ class KernelState {
|
||||
std::vector<object_ref<XNotifyListener>> notify_listeners_;
|
||||
bool has_notified_startup_ = false;
|
||||
bool has_notified_live_startup_ = false;
|
||||
bool has_notified_xmp_startup_ = false;
|
||||
|
||||
object_ref<UserModule> executable_module_;
|
||||
std::vector<object_ref<KernelModule>> kernel_modules_;
|
||||
|
||||
Reference in New Issue
Block a user