2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 17:07:41 +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

Submodule hecl/extern/libBoo updated: 45fb66540f...5485e7d2b1

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