From 13cd3ba2e78a30a2cbb3abb33dd3d40e9994fc2a Mon Sep 17 00:00:00 2001
From: Simon McVittie <[EMAIL REDACTED]>
Date: Tue, 8 Apr 2025 13:25:07 +0100
Subject: [PATCH] Add quirks for several Linux games that crash with native
Wayland video
Thanks: vv221
Reference: https://github.com/libsdl-org/SDL/issues/12751
Reference: https://github.com/libsdl-org/SDL/issues/12752
Reference: https://github.com/libsdl-org/SDL/issues/12753
Signed-off-by: Simon McVittie <smcv@collabora.com>
---
src/sdl2_compat.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/src/sdl2_compat.c b/src/sdl2_compat.c
index a683831..55f5203 100644
--- a/src/sdl2_compat.c
+++ b/src/sdl2_compat.c
@@ -510,6 +510,22 @@ static QuirkEntryType quirks[] = {
/* The UE5 editor has input issues and broken toast notification positioning on Wayland */
{ "UnrealEditor", SDL_HINT_VIDEO_DRIVER, "x11" },
+
+ /* Darkest Dungeon assumes X11 and crashes otherwise
+ * https://github.com/libsdl-org/SDL/issues/12751 */
+ { "darkest.bin.x86", SDL_HINT_VIDEO_DRIVER, "x11" },
+ { "darkest.bin.x86_64", SDL_HINT_VIDEO_DRIVER, "x11" },
+
+ /* World of Goo 2 assumes X11 and crashes otherwise
+ * https://github.com/libsdl-org/SDL/issues/12752 */
+ { "WorldOfGoo2", SDL_HINT_VIDEO_DRIVER, "x11" },
+
+ /* Infinity Engine Enhanced Edition assumes X11 and crashes otherwise
+ * https://github.com/libsdl-org/SDL/issues/12753 */
+ { "BaldursGate", SDL_HINT_VIDEO_DRIVER, "x11" },
+ { "BaldursGateII", SDL_HINT_VIDEO_DRIVER, "x11" },
+ { "IcewindDale", SDL_HINT_VIDEO_DRIVER, "x11" },
+ { "Torment64", SDL_HINT_VIDEO_DRIVER, "x11" },
};
#ifdef __linux__