From b224b592c6770017470449817ae5d4b10f4a4aab Mon Sep 17 00:00:00 2001 From: Cameron Cawley Date: Fri, 4 May 2018 22:26:22 +0100 Subject: BACKENDS: Replace usage of stricmp/strcmpi/strcasecmp --- backends/platform/dc/selector.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'backends/platform/dc/selector.cpp') diff --git a/backends/platform/dc/selector.cpp b/backends/platform/dc/selector.cpp index 6717ca494b..033f06e32d 100644 --- a/backends/platform/dc/selector.cpp +++ b/backends/platform/dc/selector.cpp @@ -155,11 +155,7 @@ static Game the_game; static bool isIcon(const Common::FSNode &entry) { - int l = entry.getDisplayName().size(); - if (l>4 && !strcasecmp(entry.getDisplayName().c_str()+l-4, ".ICO")) - return true; - else - return false; + return entry.getDisplayName().hasSuffixIgnoreCase(".ICO"); } static bool loadIcon(Game &game, Dir *dirs, int num_dirs) @@ -203,7 +199,7 @@ static bool uniqueGame(const char *base, const char *dir, this is a workaround for the detector bug in toon... */ sameOrSubdir(dir, games->dir) && /*!strcmp(dir, games->dir) &&*/ - !stricmp(base, games->filename_base) && + !scumm_stricmp(base, games->filename_base) && lang == games->language && plf == games->platform) return false; -- cgit v1.2.3