mirror of https://github.com/stella-emu/stella.git
Use already calculated file size, and cache for later use.
This commit is contained in:
parent
4f39859c49
commit
5748de3833
|
@ -184,6 +184,7 @@ void FSNodeWINDOWS::addFile(AbstractFSList& list, ListMode mode,
|
||||||
if (entry._isDirectory)
|
if (entry._isDirectory)
|
||||||
entry._path += FSNode::PATH_SEPARATOR;
|
entry._path += FSNode::PATH_SEPARATOR;
|
||||||
entry._isPseudoRoot = false;
|
entry._isPseudoRoot = false;
|
||||||
|
entry._size = find_data.nFileSizeHigh * (static_cast<size_t>(MAXDWORD) + 1) + find_data.nFileSizeLow;
|
||||||
|
|
||||||
list.emplace_back(make_shared<FSNodeWINDOWS>(entry));
|
list.emplace_back(make_shared<FSNodeWINDOWS>(entry));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue