mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
Use default core options config.
This commit is contained in:
parent
b0a78bb3fb
commit
2e2efa2d09
10
dynamic.c
10
dynamic.c
@ -510,7 +510,15 @@ static bool environment_cb(unsigned cmd, void *data)
|
|||||||
}
|
}
|
||||||
|
|
||||||
const struct retro_variable *vars = (const struct retro_variable*)data;
|
const struct retro_variable *vars = (const struct retro_variable*)data;
|
||||||
g_extern.system.core_options = core_option_new(g_settings.core_options_path, vars);
|
|
||||||
|
const char *options_path = g_settings.core_options_path;
|
||||||
|
char buf[PATH_MAX];
|
||||||
|
if (!*options_path && *g_extern.config_path)
|
||||||
|
{
|
||||||
|
fill_pathname_resolve_relative(buf, g_extern.config_path, ".retroarch-core-options.cfg", sizeof(buf));
|
||||||
|
options_path = buf;
|
||||||
|
}
|
||||||
|
g_extern.system.core_options = core_option_new(options_path, vars);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user