From 7feb5092d8e5016f8ad83e431489939bfb491c50 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Mon, 29 Jun 2026 01:10:38 -0500 Subject: [PATCH] fix: Use patch until opengamepadui is fixed upstream (#13506) (#13509) --- anda/games/opengamepadui/523.patch | 24 +++++++++++++++++++++ anda/games/opengamepadui/opengamepadui.spec | 7 +++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 anda/games/opengamepadui/523.patch diff --git a/anda/games/opengamepadui/523.patch b/anda/games/opengamepadui/523.patch new file mode 100644 index 0000000000..541f461c0f --- /dev/null +++ b/anda/games/opengamepadui/523.patch @@ -0,0 +1,24 @@ +From a3a4839724f9cf7be546fa441ba12afc95da2743 Mon Sep 17 00:00:00 2001 +From: Svitkona +Date: Fri, 19 Jun 2026 16:22:34 -0400 +Subject: [PATCH] fix: use path.get_base_dir() instead of manual split + join + +--- + core/systems/input/input_plumber_profile.gd | 4 +--- + 1 file changed, 1 insertion(+), 3 deletions(-) + +diff --git a/core/systems/input/input_plumber_profile.gd b/core/systems/input/input_plumber_profile.gd +index 7ac5eb37..bdb0adee 100644 +--- a/core/systems/input/input_plumber_profile.gd ++++ b/core/systems/input/input_plumber_profile.gd +@@ -159,9 +159,7 @@ static func get_target_device(target_device_str: String) -> TargetDevice: + func save(path: String) -> Error: + if path.begins_with("user://") or path.begins_with("res://"): + path = ProjectSettings.globalize_path(path) +- var path_parts := Array(path.split("/", false)) +- path_parts.pop_back() +- var base_path := "/".join(path_parts) ++ var base_path := path.get_base_dir() + + if DirAccess.make_dir_recursive_absolute(base_path) != OK: + print("Failed to mkdir") diff --git a/anda/games/opengamepadui/opengamepadui.spec b/anda/games/opengamepadui/opengamepadui.spec index 363e086b68..e34c0e304c 100644 --- a/anda/games/opengamepadui/opengamepadui.spec +++ b/anda/games/opengamepadui/opengamepadui.spec @@ -1,12 +1,15 @@ Name: opengamepadui Version: 0.45.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Open source gamepad-native game launcher and overlay License: GPLv3 URL: https://github.com/ShadowBlip/OpenGamepadUI Packager: Cappy Ishihara +# https://patch-diff.githubusercontent.com/raw/ShadowBlip/OpenGamepadUI/pull/523 +Patch0: 523.patch + BuildRequires: godot BuildRequires: scons BuildRequires: make @@ -33,6 +36,7 @@ BuildRequires: pkgconfig(xau) BuildRequires: pkgconfig(xtst) BuildRequires: pkgconfig(xdmcp) BuildRequires: systemd-rpm-macros +BuildRequires: patch Requires: godot-runner Recommends: inputplumber @@ -52,6 +56,7 @@ rm -rf %{build_dir} git clone %{url} %{build_dir} -b v%{version} cd %{build_dir} git checkout tags/v%{version} +%patch 0 -p1 %build cd %{build_dir}