mirror of https://github.com/stella-emu/stella.git
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…
Reference in New Issue