Restore libretro_path after loading an override, otherwise content_history might glitch

This commit is contained in:
radius 2015-04-10 00:55:41 -05:00
parent a68a97e2f7
commit 2c21a88677

View File

@ -1743,8 +1743,13 @@ bool config_load_override(void)
// Re-load the configuration with any overrides that might have been found
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))
{
{
//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);
return true;
}