mirror of
https://github.com/libretro/RetroArch
synced 2025-03-12 04:14:23 +00:00
(GX) workaround weird bug in file detection
This commit is contained in:
parent
7067b2eeb1
commit
0c08726a8e
@ -100,10 +100,15 @@ static void salamander_init_settings(void)
|
||||
if(config_file_exists)
|
||||
{
|
||||
config_file_t * conf = config_file_new(default_paths.config_path);
|
||||
if (!conf) // stupid libfat bug or something; somtimes it says the file is there when it doesn't
|
||||
config_file_exists = false;
|
||||
else
|
||||
{
|
||||
config_get_array(conf, "libretro_path", tmp_str, sizeof(tmp_str));
|
||||
config_file_free(conf);
|
||||
snprintf(default_paths.libretro_path, sizeof(default_paths.libretro_path), tmp_str);
|
||||
}
|
||||
}
|
||||
|
||||
if(!config_file_exists || !strcmp(default_paths.libretro_path, ""))
|
||||
find_and_set_first_file();
|
||||
|
Loading…
x
Reference in New Issue
Block a user