/* SWR INI Tool - Switchroot INI Configuration Editor Copyright (C) 2026 Switchroot */ #pragma once #include #include #include #include using FileSelectedCallback = std::function; class FileBrowser : public brls::AppletFrame { public: FileBrowser(const std::string& startDir, FileSelectedCallback callback); private: brls::List* list; FileSelectedCallback callback; std::string currentDir; void navigate(const std::string& dir); void selectFile(const std::string& path); struct DirEntry { std::string name; bool isDir; }; std::vector listDirectory(const std::string& dir); };