Added cross platform support for file and folder select widgets

This commit is contained in:
Ryzerth
2021-04-29 20:43:17 +02:00
parent 1738706c59
commit ab4cde9bb8
9 changed files with 1747 additions and 127 deletions

View File

@@ -3,12 +3,7 @@
#include <imgui_internal.h>
#include <stdint.h>
#include <string>
#ifdef _WIN32
#include <Windows.h>
#include <ShlObj.h>
#include <thread>
#endif
class FolderSelect {
public:
@@ -23,10 +18,8 @@ public:
private:
#ifdef _WIN32
void windowsWorker();
void worker();
std::thread workerThread;
#endif
bool pathValid = false;
bool dialogOpen = false;