Add support for the raintegration menu rebuild event

This commit is contained in:
Henrik Rydgård committed 2026-03-26 17:18:12 -06:00
1 parent 7378951ae7
commit 3083d37728
2 files changed
+7 -1

No files matched your search

+1 -1
View File
@@ -247,7 +247,7 @@ void FrameData::Submit(VulkanContext *vulkan, FrameSubmitType type, FrameDataSha
}
if (res == VK_ERROR_DEVICE_LOST) {
_assert_msg_(false, "Lost the Vulkan device in vkQueueSubmit! If this happens again, switch Graphics Backend away from Vulkan");
_assert_msg_(false, "Lost the Vulkan device in vkQueueSubmit!\n\nIf this happens again, switch Graphics Backend away from Vulkan");
} else {
_assert_msg_(res == VK_SUCCESS, "vkQueueSubmit failed (main)! result=%s", VulkanResultToString(res));
}
+6
View File
@@ -578,6 +578,12 @@ static void raintegration_event_handler(const rc_client_raintegration_event_t *e
// it's appropriate, but the event lets the frontend do things like enable/disable rewind or cheats.
g_Config.bAchievementsHardcoreMode = rc_client_get_hardcore_enabled(client);
break;
case RC_CLIENT_RAINTEGRATION_EVENT_MENU_CHANGED:
System_RunCallbackInWndProc([](void *vhWnd, void *userdata) {
HWND hWnd = reinterpret_cast<HWND>(vhWnd);
rc_client_raintegration_rebuild_submenu(g_rcClient, GetMenu(hWnd));
}, nullptr);
break;
default:
ERROR_LOG(Log::Achievements, "Unsupported RAIntegration event %u\n", event->type);
break;