Files
MesenCE/Core/Shared/NotificationManager.h
SourMesen e391fd8f9a Code: Add auto-formatting rules for C++ (clang-format) and enforce in CI via "clang-format" and "dotnet format" (#78)
* Code: Add auto-formatting rules for C++ projects (clang-format) and enforce code style via "clang-format" and "dotnet format"

* fix ui format warnings
2026-04-30 06:03:55 -07:00

18 lines
451 B
C++

#pragma once
#include "pch.h"
#include "Shared/Interfaces/INotificationListener.h"
#include "Utilities/SimpleLock.h"
class NotificationManager
{
private:
SimpleLock _lock;
vector<weak_ptr<INotificationListener>> _listeners;
void CleanupNotificationListeners();
public:
void RegisterNotificationListener(shared_ptr<INotificationListener> notificationListener);
void SendNotification(ConsoleNotificationType type, void* parameter = nullptr);
};