From c5d9985d00ef1873476f71b8ddc9f2ab8f6c4870 Mon Sep 17 00:00:00 2001 From: OusmBlueNinja <89956790+OusmBlueNinja@users.noreply.github.com> Date: Mon, 12 May 2025 12:33:53 -0500 Subject: [PATCH] Update ProjectManager.cpp --- src/src/core/functions/ProjectManager.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/src/core/functions/ProjectManager.cpp b/src/src/core/functions/ProjectManager.cpp index f5d6407..34dadbc 100644 --- a/src/src/core/functions/ProjectManager.cpp +++ b/src/src/core/functions/ProjectManager.cpp @@ -130,7 +130,8 @@ bool FileExplorer::Init() std::error_code ec; fs::recursive_directory_iterator it(s_root, fs::directory_options::skip_permission_denied, ec); - for (const fs::recursive_directory_iterator end; it != end; it.increment(ec)) { + fs::recursive_directory_iterator end; + for (; it != end; it.increment(ec)) { if (ec) { Logger::LogWarning("FileExplorer: skipping '%s': %s", it->path().string().c_str(), @@ -177,15 +178,13 @@ void FileExplorer::Show(bool* p_open) if (node.path == s_currentDir) flags |= ImGuiTreeNodeFlags_Selected; - // 1) icon - ImGui::Image(s_folderIcon, ImVec2(16,16)); + ImGui::Image((ImTextureID)s_folderIcon, ImVec2(16,16)); ImGui::SameLine(); - // 2) label const char* label = (node.path == lastTreeRoot) ? "res://" : node.path.filename().string().c_str(); - const bool open = ImGui::TreeNodeEx( + bool open = ImGui::TreeNodeEx( node.path.string().c_str(), flags, "%s",