new file picker, part 2

working stat
This commit is contained in:
tildearrow 2025-09-21 17:45:06 -05:00
parent 6aca12184f
commit be3f7a9ec1
3 changed files with 78 additions and 23 deletions

View file

@ -18,7 +18,9 @@
*/
#include "../ta-utils.h"
#include <stdint.h>
#include <thread>
#include "imgui.h"
class FurnaceFilePicker {
enum FileType {
@ -33,9 +35,13 @@ class FurnaceFilePicker {
String path;
String name;
String ext;
bool hasSize, hasTime;
uint64_t size;
struct tm time;
FileType type;
FileEntry():
hasSize(false), hasTime(false),
size(0), type(FP_TYPE_UNKNOWN) {}
};
std::vector<FileEntry*> entries;
std::vector<FileEntry*> sortedEntries;
@ -44,6 +50,7 @@ class FurnaceFilePicker {
String windowName;
String path;
String failMessage;
ImGuiListClipper listClipper;
bool haveFiles, haveStat, stopReading, isOpen;
void clearAllFiles();