Made tests in override function more consistent

This commit is contained in:
Orkun Şensebat 2015-04-07 00:51:47 +02:00
parent 793080b0c1
commit 85db635fbf
1 changed files with 5 additions and 8 deletions

View File

@ -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 */
}