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
|