mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-23 20:36:47 +01:00
(svn r313) -Feature/Fix: directories in *nix are now sorted alphabetically in ascending order (Tron).
This commit is contained in:
parent
f3758d133a
commit
198f841c7e
8
unix.c
8
unix.c
@ -100,6 +100,14 @@ FiosItem *FiosGetSavegameList(int *num, int mode)
|
|||||||
closedir(dir);
|
closedir(dir);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
/* XXX ugly global variables ... */
|
||||||
|
byte order = _savegame_sort_order;
|
||||||
|
_savegame_sort_order = 2; // sort ascending by name
|
||||||
|
qsort(_fios_items, _fios_count, sizeof(FiosItem), compare_FiosItems);
|
||||||
|
_savegame_sort_order = order;
|
||||||
|
}
|
||||||
|
|
||||||
// this is where to start sorting
|
// this is where to start sorting
|
||||||
sort_start = _fios_count;
|
sort_start = _fios_count;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user