mirror of
https://github.com/libretro/RetroArch
synced 2025-03-30 16:20:27 +00:00
(config_file) Simplify config_sort_compare_func
This commit is contained in:
parent
700009216c
commit
24910b6999
@ -64,10 +64,12 @@ static int config_sort_compare_func(struct config_entry_list *a,
|
||||
{
|
||||
if (a && b)
|
||||
{
|
||||
if (a->key && b->key)
|
||||
return strcasecmp(a->key, b->key);
|
||||
else if (a->key)
|
||||
if (a->key)
|
||||
{
|
||||
if (b->key)
|
||||
return strcasecmp(a->key, b->key);
|
||||
return 1;
|
||||
}
|
||||
else if (b->key)
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user