mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-28 10:40:39 +00:00
Clarify a bit.
This commit is contained in:
parent
2e9fade00a
commit
a03c11d7d0
@ -61,15 +61,13 @@ void ssnes_console_name_from_id(char *name, size_t size)
|
||||
|
||||
name[strlen(id)] = '\0';
|
||||
|
||||
for (size_t i = 0; i < size && id[i]; i++)
|
||||
for (size_t i = 0; id[i] != '\0'; i++)
|
||||
{
|
||||
char c = id[i];
|
||||
if (isspace(c) || isblank(c))
|
||||
name[i] = '_';
|
||||
else if (isupper(c))
|
||||
name[i] = tolower(c);
|
||||
else
|
||||
name[i] = c;
|
||||
name[i] = tolower(c);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user