Made tests in override function more consistent
This commit is contained in:
parent
793080b0c1
commit
85db635fbf
|
@ -1730,18 +1730,15 @@ bool config_load_override(void)
|
|||
}
|
||||
else
|
||||
strlcpy(global->append_config_path, game_path, sizeof(global->append_config_path));
|
||||
RARCH_LOG("Game-specific configuration found at %s. Appending.\n", game_path);
|
||||
|
||||
RARCH_LOG("Game-specific configuration found at %s. Appending.\n", game_path);
|
||||
should_append = true;
|
||||
}
|
||||
else
|
||||
RARCH_LOG("No game-specific configuration found at %s.\n", game_path);
|
||||
|
||||
if(should_append)
|
||||
{
|
||||
if(!config_load_file(global->config_path, false))
|
||||
if (should_append && !config_load_file(global->config_path, false))
|
||||
return false;
|
||||
}
|
||||
|
||||
return true; /* only means no errors were caught */
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue