From f3cfa8283aafe5052753afeddea9e521a009eddc Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 13 Aug 2014 03:50:53 +0200 Subject: [PATCH] (retrolaunch) cleanups pt. 2 --- tools/retrolaunch/main.c | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/tools/retrolaunch/main.c b/tools/retrolaunch/main.c index da9519d2f4..8f62b2edc6 100644 --- a/tools/retrolaunch/main.c +++ b/tools/retrolaunch/main.c @@ -268,17 +268,15 @@ static int detect_rom_game(const char *path, char *game_name, size_t max_len) static int detect_game(const char *path, char *game_name, size_t max_len) { - if ((!strcasecmp(path + strlen(path) - 4, ".cue")) || - (!strcasecmp(path + strlen(path) - 4, ".m3u"))) + if ((!strcasecmp(path + strlen(path) - 4, ".cue")) || + (!strcasecmp(path + strlen(path) - 4, ".m3u"))) { - LOG_INFO("Starting CD game detection..."); - return detect_cd_game(path, game_name, max_len); - } - else - { - LOG_INFO("Starting rom game detection..."); - return detect_rom_game(path, game_name, max_len); - } + LOG_INFO("Starting CD game detection..."); + return detect_cd_game(path, game_name, max_len); + } + + LOG_INFO("Starting rom game detection..."); + return detect_rom_game(path, game_name, max_len); } static int select_core(char *core_path, size_t max_len,