mirror of
https://github.com/mordentral/AdvancedSessionsPlugin.git
synced 2025-10-22 16:04:18 +00:00
change over to manual delegate for steam notification
This commit is contained in:
@@ -38,14 +38,27 @@ public:
|
|||||||
void Initialize(USteamNotificationsSubsystem* MyParent)
|
void Initialize(USteamNotificationsSubsystem* MyParent)
|
||||||
{
|
{
|
||||||
ParentSubsystem = MyParent;
|
ParentSubsystem = MyParent;
|
||||||
|
|
||||||
|
#if (PLATFORM_WINDOWS || PLATFORM_MAC || PLATFORM_LINUX) && STEAM_SDK_INSTALLED
|
||||||
|
OnExternalUITriggeredCallback.Register(this, &USteamNotificationsSubsystem::cSteamEventsStore::OnExternalUITriggered);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
void UnInitialize(USteamNotificationsSubsystem* MyParent)
|
||||||
|
{
|
||||||
|
#if (PLATFORM_WINDOWS || PLATFORM_MAC || PLATFORM_LINUX) && STEAM_SDK_INSTALLED
|
||||||
|
OnExternalUITriggeredCallback.Unregister();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#if (PLATFORM_WINDOWS || PLATFORM_MAC || PLATFORM_LINUX) && STEAM_SDK_INSTALLED
|
#if (PLATFORM_WINDOWS || PLATFORM_MAC || PLATFORM_LINUX) && STEAM_SDK_INSTALLED
|
||||||
cSteamEventsStore() :
|
cSteamEventsStore()
|
||||||
OnExternalUITriggeredCallback(this, &cSteamEventsStore::OnExternalUITriggered)
|
{}
|
||||||
|
//:
|
||||||
|
/*OnExternalUITriggeredCallback(this, &cSteamEventsStore::OnExternalUITriggered)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}*/
|
||||||
#else
|
#else
|
||||||
//cSteamEventsStore()
|
//cSteamEventsStore()
|
||||||
//{
|
//{
|
||||||
@@ -57,7 +70,8 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
#if (PLATFORM_WINDOWS || PLATFORM_MAC || PLATFORM_LINUX) && STEAM_SDK_INSTALLED
|
#if (PLATFORM_WINDOWS || PLATFORM_MAC || PLATFORM_LINUX) && STEAM_SDK_INSTALLED
|
||||||
STEAM_CALLBACK(cSteamEventsStore, OnExternalUITriggered, GameOverlayActivated_t, OnExternalUITriggeredCallback);
|
//STEAM_CALLBACK(cSteamEventsStore, OnExternalUITriggered, GameOverlayActivated_t, OnExternalUITriggeredCallback);
|
||||||
|
STEAM_CALLBACK_MANUAL(cSteamEventsStore, OnExternalUITriggered, GameOverlayActivated_t, OnExternalUITriggeredCallback);
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -72,7 +86,7 @@ public:
|
|||||||
/** Implement this for deinitialization of instances of the system */
|
/** Implement this for deinitialization of instances of the system */
|
||||||
virtual void Deinitialize() override
|
virtual void Deinitialize() override
|
||||||
{
|
{
|
||||||
|
MyEvents.UnInitialize(this);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user