From 946d09251c4745b1d62b39a86f51fdf6cab7881a Mon Sep 17 00:00:00 2001 From: Toad King Date: Wed, 22 Aug 2012 18:20:33 -0400 Subject: [PATCH] (GX) have salamander set libretro_path --- gx/salamander/main.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gx/salamander/main.c b/gx/salamander/main.c index 73540fdea3..1146759edf 100644 --- a/gx/salamander/main.c +++ b/gx/salamander/main.c @@ -109,6 +109,14 @@ static void init_settings(void) { RARCH_LOG("Start [%s] found in retroarch.cfg.\n", libretro_path); } + + if (!config_file_exists) + { + config_file_t *new_conf = config_file_new(NULL); + config_set_string(new_conf, "libretro_path", libretro_path); + config_file_write(new_conf, default_paths.config_file); + config_file_free(new_conf); + } } }