mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 04:20:27 +00:00
Restore libretro_path after loading an override, otherwise content_history might glitch
This commit is contained in:
parent
a68a97e2f7
commit
2c21a88677
@ -1743,8 +1743,13 @@ bool config_load_override(void)
|
|||||||
// Re-load the configuration with any overrides that might have been found
|
// Re-load the configuration with any overrides that might have been found
|
||||||
if (should_append)
|
if (should_append)
|
||||||
{
|
{
|
||||||
|
char buf[PATH_MAX_LENGTH];
|
||||||
|
//Store the libretro_path we're using since it will be overwritten by the override when reloading
|
||||||
|
strlcpy(buf,settings->libretro,sizeof(buf));
|
||||||
if (config_load_file(global->config_path, false))
|
if (config_load_file(global->config_path, false))
|
||||||
{
|
{
|
||||||
|
//Restore the libretro_path we're using since it will be overwritten by the override when reloading
|
||||||
|
strlcpy(settings->libretro,buf,sizeof(settings->libretro));
|
||||||
rarch_main_msg_queue_push("Configuration override loaded", 1, 100, true);
|
rarch_main_msg_queue_push("Configuration override loaded", 1, 100, true);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user