mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-06-30 18:13:28 +00:00
Use std::multimap to sort files by size
This commit is contained in:
parent
68fd386e50
commit
cd6ae55c07
2
hecl/extern/libBoo
vendored
2
hecl/extern/libBoo
vendored
@ -1 +1 @@
|
||||
Subproject commit 45fb66540f954f3eea88be836acf37eebf42138c
|
||||
Subproject commit 5485e7d2b1de555c5833f7fcd5ac4a58457d9532
|
@ -213,7 +213,7 @@ HECL::DirectoryEnumerator::DirectoryEnumerator(const HECL::SystemChar* path, Mod
|
||||
|
||||
if (sizeSort)
|
||||
{
|
||||
std::map<size_t, Entry> sort;
|
||||
std::multimap<size_t, Entry> sort;
|
||||
do
|
||||
{
|
||||
if (!wcscmp(d.cFileName, _S(".")) || !wcscmp(d.cFileName, _S("..")))
|
||||
@ -338,7 +338,7 @@ HECL::DirectoryEnumerator::DirectoryEnumerator(const HECL::SystemChar* path, Mod
|
||||
|
||||
if (sizeSort)
|
||||
{
|
||||
std::map<size_t, Entry> sort;
|
||||
std::multimap<size_t, Entry> sort;
|
||||
while ((d = readdir(dir)))
|
||||
{
|
||||
if (!strcmp(d->d_name, ".") || !strcmp(d->d_name, ".."))
|
||||
|
Loading…
x
Reference in New Issue
Block a user