rsx/overlays: Implement trophy notification queue

- Allows to display more than one trophy at a time. Trophy notifications
will simply get queued up and displayed at appropriate time.
This commit is contained in:
kd-11 2020-01-03 20:43:00 +03:00 committed by kd-11
parent 49d5ce3ba4
commit 3ada97d2d3
3 changed files with 53 additions and 3 deletions

View file

@ -9,7 +9,9 @@ s32 trophy_notification_helper::ShowTrophyNotification(const SceNpTrophyDetails&
{
if (auto manager = g_fxo->get<rsx::overlays::display_manager>())
{
return manager->create<rsx::overlays::trophy_notification>()->show(trophy, trophy_icon_buffer);
// Allow adding more than one trophy notification. The notification class manages scheduling
auto popup = std::make_shared<rsx::overlays::trophy_notification>();
return manager->add(popup, false)->show(trophy, trophy_icon_buffer);
}
if (!Emu.HasGui())