unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob 1adfa127699028f8568b88b0517e7357d08ed663 949 bytes (raw)
name: gnu/packages/patches/retroarch-RARCH_LIBRETRO_DIRECTORY.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
 
From 4bbdc3cfed132eb2631af7c5512f0ef88257b4d9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@member.fsf.org>
Date: Wed, 17 Feb 2021 19:09:15 +0800
Subject: [PATCH] Allow set libretro_directory via environment variable

---
 configuration.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/configuration.c b/configuration.c
index 8457c586ed..b619a4bbfd 100644
--- a/configuration.c
+++ b/configuration.c
@@ -3101,6 +3101,11 @@ static bool config_load_file(global_t *global,
       configuration_set_string(settings,
             settings->paths.directory_libretro, tmp_str);
 
+   if (getenv("RARCH_LIBRETRO_DIRECTORY"))
+      configuration_set_string(settings,
+            settings->paths.directory_libretro,
+            getenv("RARCH_LIBRETRO_DIRECTORY"));
+
 #ifndef HAVE_DYNAMIC
    if (config_get_path(conf, "libretro_path", tmp_str, path_size))
       path_set(RARCH_PATH_CORE, tmp_str);
-- 
2.30.0


debug log:

solving 1adfa12769 ...
found 1adfa12769 in https://yhetil.org/guix-patches/OSZP286MB06645FD938AA505B82D699E0A3869@OSZP286MB0664.JPNP286.PROD.OUTLOOK.COM/

applying [1/1] https://yhetil.org/guix-patches/OSZP286MB06645FD938AA505B82D699E0A3869@OSZP286MB0664.JPNP286.PROD.OUTLOOK.COM/
diff --git a/gnu/packages/patches/retroarch-RARCH_LIBRETRO_DIRECTORY.patch b/gnu/packages/patches/retroarch-RARCH_LIBRETRO_DIRECTORY.patch
new file mode 100644
index 0000000000..1adfa12769

1:23: trailing whitespace.
 
1:32: trailing whitespace.
-- 
Checking patch gnu/packages/patches/retroarch-RARCH_LIBRETRO_DIRECTORY.patch...
1:34: new blank line at EOF.
+
Applied patch gnu/packages/patches/retroarch-RARCH_LIBRETRO_DIRECTORY.patch cleanly.
warning: 3 lines add whitespace errors.

index at:
100644 1adfa127699028f8568b88b0517e7357d08ed663	gnu/packages/patches/retroarch-RARCH_LIBRETRO_DIRECTORY.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).