2
0
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:
Jack Andersen 2016-01-07 14:05:50 -10:00
parent 68fd386e50
commit cd6ae55c07
2 changed files with 3 additions and 3 deletions

2
hecl/extern/libBoo vendored

@ -1 +1 @@
Subproject commit 45fb66540f954f3eea88be836acf37eebf42138c
Subproject commit 5485e7d2b1de555c5833f7fcd5ac4a58457d9532

View File

@ -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, ".."))