mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-23 04:04:09 +01:00
Codechange: Use directory_iterator in ScanPath.
Replaces use of custom ttd_opendir.
This commit is contained in:
committed by
Peter Nelson
parent
d7c547d0db
commit
42523379d9
@@ -365,9 +365,9 @@ static void FiosGetFileList(SaveLoadOperation fop, bool show_dirs, FiosGetTypeAn
|
||||
/* Show files */
|
||||
FiosFileScanner scanner(fop, callback_proc, file_list);
|
||||
if (subdir == NO_DIRECTORY) {
|
||||
scanner.Scan(nullptr, *_fios_path, false);
|
||||
scanner.Scan({}, *_fios_path, false);
|
||||
} else {
|
||||
scanner.Scan(nullptr, subdir, true, true);
|
||||
scanner.Scan({}, subdir, true, true);
|
||||
}
|
||||
|
||||
std::sort(file_list.begin() + sort_start, file_list.end());
|
||||
|
||||
Reference in New Issue
Block a user