diff options
author | alberth <alberth@openttd.org> | 2016-09-04 12:54:30 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2016-09-04 12:54:30 +0000 |
commit | 95bb103a233c9986777897c0d8b26f6f7c1cf08f (patch) | |
tree | b3cd0327b26c3f7016d96a6b11d78f616a7b030a /src/fios.cpp | |
parent | caf33797463560617526cbb38eac5e8b77eda242 (diff) | |
download | openttd-95bb103a233c9986777897c0d8b26f6f7c1cf08f.tar.xz |
(svn r27643) -Codechange: FiosGetDrives function also takes a destination file list.
Diffstat (limited to 'src/fios.cpp')
-rw-r--r-- | src/fios.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fios.cpp b/src/fios.cpp index 529890810..271f27076 100644 --- a/src/fios.cpp +++ b/src/fios.cpp @@ -38,7 +38,7 @@ SortingBits _savegame_sort_order = SORT_BY_DATE | SORT_DESCENDING; extern bool FiosIsRoot(const char *path); extern bool FiosIsValidFile(const char *path, const struct dirent *ent, struct stat *sb); extern bool FiosIsHiddenFile(const struct dirent *ent); -extern void FiosGetDrives(); +extern void FiosGetDrives(FileList &file_list); extern bool FiosGetDiskFreeSpace(const char *path, uint64 *tot); /* get the name of an oldstyle savegame */ @@ -354,7 +354,7 @@ static void FiosGetFileList(SaveLoadDialogMode mode, fios_getlist_callback_proc QSortT(file_list.Get(sort_start), file_list.Length() - sort_start, CompareFiosItems); /* Show drives */ - FiosGetDrives(); + FiosGetDrives(file_list); file_list.Compact(); } |