mirror of
https://github.com/libretro/stella2023.git
synced 2025-02-15 22:57:40 +00:00
Speed up file/directory access in Windows by 3-4x.
This commit is contained in:
parent
7193c40532
commit
7a8845548d
@ -143,7 +143,8 @@ bool FSNodeWINDOWS::getChildren(AbstractFSList& myList, ListMode mode) const
|
||||
{
|
||||
// Files enumeration
|
||||
WIN32_FIND_DATA desc;
|
||||
HANDLE handle = FindFirstFile((_path + "*").c_str(), &desc);
|
||||
HANDLE handle = FindFirstFileEx((_path + "*").c_str(), FindExInfoBasic,
|
||||
&desc, FindExSearchNameMatch, NULL, FIND_FIRST_EX_LARGE_FETCH);
|
||||
if (handle == INVALID_HANDLE_VALUE)
|
||||
return false;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user