mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Add support for the raintegration menu rebuild event
This commit is contained in:
1 parent
7378951ae7
commit
3083d37728
2 files changed
+7
-1
No files matched your search
@@ -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));
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user