From 16626876e7cc4e4fd91b31a9e49567e892fc9e63 Mon Sep 17 00:00:00 2001 From: Noel Berry Date: Sat, 24 Oct 2020 15:23:48 -0700 Subject: [PATCH] fixed dir_enumerate on mac/linux --- private/blah/internal/platform_sdl2.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/private/blah/internal/platform_sdl2.cpp b/private/blah/internal/platform_sdl2.cpp index b16cb27..2f69c3e 100644 --- a/private/blah/internal/platform_sdl2.cpp +++ b/private/blah/internal/platform_sdl2.cpp @@ -551,7 +551,7 @@ bool Platform::dir_delete(const char* path) return false; } -void Platform::dir_enumerate(List& list, const char* path, bool recursive) +void Platform::dir_enumerate(Vector& list, const char* path, bool recursive) { DIR* dirp = opendir(path); if (dirp != NULL) @@ -562,8 +562,8 @@ void Platform::dir_enumerate(List& list, const char* path, bool recurs if (dp->d_name[0] == '.') continue; - FilePath subpath = FilePath(path).Append(dp->d_name); - list.Add(subpath); + FilePath subpath = FilePath(path).append(dp->d_name); + list.push_back(subpath); if (recursive && dp->d_type == DT_DIR) dir_enumerate(list, subpath + "/", true); @@ -574,7 +574,7 @@ void Platform::dir_enumerate(List& list, const char* path, bool recurs void Platform::dir_explore(const char* path) { - BLAH_ERROR("not implemented"); + BLAH_ERROR("'dir_explore' Not Implemented"); } #endif