From aba0d0de792b53d41c482cffb33a8125449a2882 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 23 Aug 2012 00:15:58 +0200 Subject: [PATCH] (Salamander XDK) Salamander takes care of setting a config file with a proper libretro_path --- xdk/salamander/main.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/xdk/salamander/main.c b/xdk/salamander/main.c index 0b7a3c1209..b7e86c247b 100644 --- a/xdk/salamander/main.c +++ b/xdk/salamander/main.c @@ -101,11 +101,21 @@ static void init_settings(void) } if(!config_file_exists || strcmp(libretro_path, "") == 0) + { find_and_set_first_file(); + } else { 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); + } } }