From 8f52b2f0f883c2e7957b076bdf0b5881f9116783 Mon Sep 17 00:00:00 2001 From: Alcaro Date: Fri, 20 Nov 2015 16:33:44 +0100 Subject: [PATCH] Clean up this one a little. --- dynamic.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/dynamic.c b/dynamic.c index 9f96d2f9f0..1bce12ead1 100644 --- a/dynamic.c +++ b/dynamic.c @@ -642,13 +642,11 @@ static bool rarch_game_specific_options(char **output) strlcat(game_path, ".opt", PATH_MAX_LENGTH); option_file = config_file_new(game_path); - if (option_file) - { - RARCH_LOG("Per-Game Options: game-specific core options found at %s\n", game_path); - *output = game_path; - return true; - } - return false; + if (!option_file) return false; + + RARCH_LOG("Per-Game Options: game-specific core options found at %s\n", game_path); + *output = game_path; + return true; } /**