[Kernel] Initial XMP Notifications

This commit is contained in:
Adrian
2026-07-21 17:27:19 +01:00
committed by Radosław Gliński
parent 7d8be7f17e
commit 0c6dc9b628
2 changed files with 8 additions and 0 deletions

View File

@@ -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) {

View File

@@ -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_;