aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/dc
diff options
context:
space:
mode:
authorCameron Cawley2018-05-04 22:26:22 +0100
committerAdrian Frühwirth2018-05-06 01:12:56 +0200
commitb224b592c6770017470449817ae5d4b10f4a4aab (patch)
treea49a58577f63a437b3387d619dbe41c1de5758f0 /backends/platform/dc
parentd8f4170ea97c86084e8a73fcb63ebe3e8b6c920f (diff)
downloadscummvm-rg350-b224b592c6770017470449817ae5d4b10f4a4aab.tar.gz
scummvm-rg350-b224b592c6770017470449817ae5d4b10f4a4aab.tar.bz2
scummvm-rg350-b224b592c6770017470449817ae5d4b10f4a4aab.zip
BACKENDS: Replace usage of stricmp/strcmpi/strcasecmp
Diffstat (limited to 'backends/platform/dc')
-rw-r--r--backends/platform/dc/selector.cpp8
1 files changed, 2 insertions, 6 deletions
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;