Unverified Commit 1e9b9ff1 authored by Libretro-Admin's avatar Libretro-Admin Committed by GitHub
Browse files

Merge pull request #60 from cayce-msx/issue-48-load-games

case insensitive rom/dsk/cas detection - fixes #48
parents 50e70ba8 9417f4dc
Pipeline #64777 failed with stages
in 1 minute and 30 seconds
......@@ -619,17 +619,17 @@ bool retro_load_game(const struct retro_game_info *info)
if (info)
{
char *dot = strrchr(info->path, '.');
if (dot && ( !strcmp(dot, ".rom") || !strcmp(dot, ".mx1") || !strcmp(dot, ".mx2") ))
if (dot && ( !strcasecmp(dot, ".rom") || !strcasecmp(dot, ".mx1") || !strcasecmp(dot, ".mx2") ))
{
strcpy(ROMName_buffer[0], info->path);
ROMName[0]=ROMName_buffer[0];
}
else if (dot && !strcmp(dot, ".dsk"))
else if (dot && !strcasecmp(dot, ".dsk"))
{
strcpy(DSKName_buffer[0], info->path);
DSKName[0]=DSKName_buffer[0];
}
else if (dot && !strcmp(dot, ".cas"))
else if (dot && !strcasecmp(dot, ".cas"))
{
strcpy(CasName_buffer, info->path);
CasName=CasName_buffer;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment