From be058cf6fcf01be49e98b8a646e1ffdb34130db6 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Mon, 20 Jan 2025 10:22:53 +0900 Subject: gnu: dolphin-emu: Patch data. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This resolves a hang in the menu of the WaveRace game. * gnu/packages/patches/dolphin-emu-data.patch: New file. * gnu/packages/patches/libretro-dolphin-emu-data.patch: Likewise. * gnu/local.mk (dist_patch_DATA): Register them. * gnu/packages/emulators.scm (dolphin-emu) [source]: Apply dolphin-emu patch. (libretro-dolphin-emu) [source]: Apply libretro-dolphin-emu patch. Reviewed-by: Sou Bunnbu (宋文武) Change-Id: Ie22a7bba527724179f5296a44f1874d2efdbd94c --- gnu/packages/emulators.scm | 6 ++++-- gnu/packages/patches/dolphin-emu-data.patch | 15 +++++++++++++++ gnu/packages/patches/libretro-dolphin-emu-data.patch | 17 +++++++++++++++++ 3 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 gnu/packages/patches/dolphin-emu-data.patch create mode 100644 gnu/packages/patches/libretro-dolphin-emu-data.patch (limited to 'gnu/packages') diff --git a/gnu/packages/emulators.scm b/gnu/packages/emulators.scm index 43d8d2bdf72..f20b6da79b3 100644 --- a/gnu/packages/emulators.scm +++ b/gnu/packages/emulators.scm @@ -337,7 +337,8 @@ console.") (substitute* "CMakeLists.txt" ((".*add_subdirectory.*Externals/enet.*") "") ((".*add_subdirectory.*Externals/soundtouch.*") "") - ((".*add_subdirectory.*Externals/xxhash.*") "")))))) + ((".*add_subdirectory.*Externals/xxhash.*") "")))) + (patches (search-patches "dolphin-emu-data.patch")))) (build-system cmake-build-system) (arguments (list @@ -499,7 +500,8 @@ turbo speed, networked multiplayer, and graphical enhancements.") (file-name (git-file-name name version)) (sha256 (base32 - "1fvm6hy0ihc0j3sgv88a7ak08c0kyikmmiif827j981fy7zvglvz")))) + "1fvm6hy0ihc0j3sgv88a7ak08c0kyikmmiif827j981fy7zvglvz")) + (patches (search-patches "libretro-dolphin-emu-data.patch")))) (arguments (substitute-keyword-arguments (package-arguments dolphin-emu) ((#:configure-flags flags ''()) diff --git a/gnu/packages/patches/dolphin-emu-data.patch b/gnu/packages/patches/dolphin-emu-data.patch new file mode 100644 index 00000000000..6ba959b9291 --- /dev/null +++ b/gnu/packages/patches/dolphin-emu-data.patch @@ -0,0 +1,15 @@ +Resolve a hang in the menu of this game. + +Upstream-status: https://github.com/dolphin-emu/dolphin/pull/13285 + +diff --git a/Data/Sys/GameSettings/GWR.ini b/Data/Sys/GameSettings/GWR.ini +new file mode 100644 +index 0000000000..fdbc0c312f +--- /dev/null ++++ b/Data/Sys/GameSettings/GWR.ini +@@ -0,0 +1,5 @@ ++# GWR - WAVE RACE / BLUE STORM ++ ++[Core] ++# Disable multi-threading to avoid a hang in the game menu. ++CPUThread = False diff --git a/gnu/packages/patches/libretro-dolphin-emu-data.patch b/gnu/packages/patches/libretro-dolphin-emu-data.patch new file mode 100644 index 00000000000..e98660d8abc --- /dev/null +++ b/gnu/packages/patches/libretro-dolphin-emu-data.patch @@ -0,0 +1,17 @@ +Resolve a hang in the menu of this game. + +Upstream-status: https://github.com/libretro/dolphin/pull/337 + +diff --git a/Data/Sys/GameSettings/GWR.ini b/Data/Sys/GameSettings/GWR.ini +new file mode 100644 +index 0000000000..a55f4d29cd +--- /dev/null ++++ b/Data/Sys/GameSettings/GWR.ini +@@ -0,0 +1,7 @@ ++# GWR - WAVE RACE / BLUE STORM ++ ++[Core] ++# Disable multi-threading to avoid a hang in the game menu. ++# TODO: Change to 'CPUThread = False' after rebasing to latest ++# upstream (see commit 869edd5a66). ++SyncGPU = True -- cgit v1.2.3